29 mars 2026 · 7 min de lecture TypeScript le système de types - 08 - Type guards : is, asserts, instanceof, in Comment écrire des type guards pour aider TypeScript a narrower les types. Custom type guards avec is et asserts, typeof, instanceof, in. TypeScripttype guardsnarrowingisassertsinstanceof