chore: stricter typescript - #2396
Closed
shikanime wants to merge 2 commits into
Closed
Conversation
shikanime
force-pushed
the
shikanime/push-pmrrqzrvqzrz
branch
from
July 30, 2026 18:14
00fadbd to
9f0d72a
Compare
| const proto: object | null = Object.getPrototypeOf(value) | ||
| if (proto !== Object.prototype && proto !== null) { | ||
| const ctorName = (value as any)?.constructor?.name | ||
| const ctorName = typeof proto === 'object' && proto !== null && 'constructor' in proto |
| } | ||
|
|
||
| const obj = value as Record<string, unknown> | ||
| if (typeof obj !== 'object' || obj === null) { |
shikanime
force-pushed
the
shikanime/push-pmrrqzrvqzrz
branch
2 times, most recently
from
July 31, 2026 07:56
cdb13f6 to
28228e7
Compare
shikanime
marked this pull request as draft
July 31, 2026 08:11
shikanime
force-pushed
the
shikanime/push-pmrrqzrvqzrz
branch
from
July 31, 2026 08:20
28228e7 to
c54381c
Compare
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: I84bd2176629df04db896da1095598a636a6a6964
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr> Change-Id: Iad8890849080d90dad5c64f320afa7466a6a6964
shikanime
force-pushed
the
shikanime/push-pmrrqzrvqzrz
branch
from
July 31, 2026 08:53
c54381c to
8340953
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: William Phetsinorath william.phetsinorath-open@interieur.gouv.fr
Change-Id: I84bd2176629df04db896da1095598a636a6a6964## Issues liées
Issues numéro:
Quel est le comportement actuel ?
Quel est le nouveau comportement ?
Cette PR introduit-elle un breaking change ?
Autres informations