Skip to content

chore: stricter typescript - #2396

Closed
shikanime wants to merge 2 commits into
mainfrom
shikanime/push-pmrrqzrvqzrz
Closed

chore: stricter typescript #2396
shikanime wants to merge 2 commits into
mainfrom
shikanime/push-pmrrqzrvqzrz

Conversation

@shikanime

Copy link
Copy Markdown
Member

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

@shikanime
shikanime force-pushed the shikanime/push-pmrrqzrvqzrz branch from 00fadbd to 9f0d72a Compare July 30, 2026 18:14
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
shikanime force-pushed the shikanime/push-pmrrqzrvqzrz branch 2 times, most recently from cdb13f6 to 28228e7 Compare July 31, 2026 07:56
@shikanime
shikanime marked this pull request as draft July 31, 2026 08:11
@shikanime
shikanime force-pushed the shikanime/push-pmrrqzrvqzrz branch from 28228e7 to c54381c Compare July 31, 2026 08:20
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
shikanime force-pushed the shikanime/push-pmrrqzrvqzrz branch from c54381c to 8340953 Compare July 31, 2026 08:53
@shikanime shikanime closed this Jul 31, 2026
@shikanime
shikanime deleted the shikanime/push-pmrrqzrvqzrz branch July 31, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant