Loading...
Loading...
Modern TypeScript 7.0 preferences for strict typing, tsconfig, narrowing, generics, declaration design, native tooling, and 6.0-to-7.0 compatibility work.
npx skill4agent add corneliusio/skills typescriptMUSTMUST NOTREQUIREDSHALLSHALL NOTSHOULDSHOULD NOTRECOMMENDEDMAYOPTIONAL| Topic | Reference | Load when |
|---|---|---|
| Configuration and TS 6-to-7 migration | | Updating tsconfig, module resolution, compiler directives, native tooling |
| Generics and type-level programming | | Designing reusable generic APIs, utility types, mapped/conditional/template literal types |
| Narrowing and type guards | | Modeling variants, validating unknown values, writing exhaustive code |
| Patterns and declarations | | Choosing interfaces/types/enums/classes/brands/overloads/callback signatures |
strict: trueunknownany!satisfiessatisfiesasimport typeexport type@ts-expect-error@ts-ignore@ts-nocheckkindtypetypeas constfunction find(): User | nullMaybeUserRecord<K, V>extendsPartialPickOmitRecordReturnTypeParametersAwaitedNoInferNoInfer<T>strictmoduleesnexttargetesnextmodule: "preserve"moduleResolution: "bundler"noEmit: truemodule: "nodenext"typeverbatimModuleSyntaxisolatedModulesmoduleDetection: "force"typesbaseUrlimport ... assertsoutFilestableTypeOrdering