Best practices for TypeScript code including type safety, discriminated unions, type guards, and exhaustive checking. Use this skill whenever the user asks about TypeScript patterns, type safety, type assertions (as any, as unknown), non-null assertions, discriminated unions, exhaustive switch/never patterns, type guards, boolean trap parameters, race conditions in async code, memory leaks from closures, or sequential vs parallel async operations. Also trigger when reviewing TypeScript code for unsafe patterns or refactoring types.
$npx -y skills add nvidia/elements --skill typescriptInstalls into the current project.
Run `npx skills use "https://github.com/nvidia/elements" --skill "nvidia/elements/typescript"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/nvidia/elements" that are relevant to the current task. Run `npx skills add "https://github.com/nvidia/elements"` and select the relevant skills, then follow their instructions.