์Šคํ‚ฌ typescript-strict
๐Ÿ”’

typescript-strict

์•ˆ์ „ ๐ŸŒ ๋„คํŠธ์›Œํฌ ์ ‘๊ทผ๐Ÿ“ ํŒŒ์ผ ์‹œ์Šคํ…œ ์•ก์„ธ์Šคโš™๏ธ ์™ธ๋ถ€ ๋ช…๋ น์–ด

Enable TypeScript Strict Mode

๋˜ํ•œ ๋‹ค์Œ์—์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค: Barnhardt-Enterprises-Inc

TypeScript strict mode catches bugs at compile time that would cause runtime errors. This skill helps you configure and enforce strict type checking for safer, more reliable code.

์ง€์›: Claude Codex Code(CC)
๐Ÿ“Š 71 ์ ์ ˆํ•จ
1

์Šคํ‚ฌ ZIP ๋‹ค์šด๋กœ๋“œ

2

Claude์—์„œ ์—…๋กœ๋“œ

์„ค์ • โ†’ ๊ธฐ๋Šฅ โ†’ ์Šคํ‚ฌ โ†’ ์Šคํ‚ฌ ์—…๋กœ๋“œ๋กœ ์ด๋™

3

ํ† ๊ธ€์„ ์ผœ๊ณ  ์‚ฌ์šฉ ์‹œ์ž‘

ํ…Œ์ŠคํŠธํ•ด ๋ณด๊ธฐ

"typescript-strict" ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. Show me how to fix this TypeScript error: 'Parameter has an any type'

์˜ˆ์ƒ ๊ฒฐ๊ณผ:

  • Replace 'any' with 'unknown' and add type guards
  • Use generics for reusable type-safe functions
  • Create interface/type definitions for your data structures
  • Implement proper type narrowing with if statements

"typescript-strict" ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. How do I configure my tsconfig.json for maximum type safety?

์˜ˆ์ƒ ๊ฒฐ๊ณผ:

  • Set 'strict: true' to enable all strict checks
  • Add 'noUncheckedIndexedAccess: true' for safer array access
  • Enable 'noImplicitReturns: true' to catch missing returns
  • Use 'noUnusedLocals: true' to keep code clean

"typescript-strict" ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. Why should I avoid @ts-ignore in my code?

์˜ˆ์ƒ ๊ฒฐ๊ณผ:

  • @ts-ignore suppresses errors without fixing the underlying issue
  • It creates hidden bugs that only appear at runtime
  • Use type guards or proper types instead
  • Your codebase becomes harder to maintain and refactor

๋ณด์•ˆ ๊ฐ์‚ฌ

์•ˆ์ „
v5 โ€ข 1/17/2026

This is a documentation-only skill containing TypeScript strict mode guidelines. No executable code, network calls, or file system access detected. All 56 static findings are false positives caused by the scanner misinterpreting documentation content as security-sensitive code patterns.

2
์Šค์บ”๋œ ํŒŒ์ผ
518
๋ถ„์„๋œ ์ค„ ์ˆ˜
3
๋ฐœ๊ฒฌ ์‚ฌํ•ญ
5
์ด ๊ฐ์‚ฌ ์ˆ˜

ํ’ˆ์งˆ ์ ์ˆ˜

38
์•„ํ‚คํ…์ฒ˜
100
์œ ์ง€๋ณด์ˆ˜์„ฑ
87
์ฝ˜ํ…์ธ 
30
์ปค๋ฎค๋‹ˆํ‹ฐ
100
๋ณด์•ˆ
91
์‚ฌ์–‘ ์ค€์ˆ˜

๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๊ฒƒ

Configure New TypeScript Projects

Set up strict TypeScript configuration from the start to prevent technical debt and catch bugs early.

Enforce Type Safety Standards

Review pull requests for TypeScript strict compliance and educate team members on best practices.

Migrate to Strict Mode

Gradually introduce strict mode to existing projects with step-by-step migration strategies.

์ด ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์„ธ์š”

Basic Strict Setup
Help me set up TypeScript strict mode in my project. Show me the essential tsconfig.json settings and explain what each strict flag does.
Any to Unknown Migration
I have TypeScript code with many 'any' types. Help me migrate them to 'unknown' with proper type guards. Show before and after examples.
ESLint Configuration
Configure ESLint to enforce TypeScript strict mode rules. Include all recommended rules and explain why each is important.
Type Guard Implementation
Show me how to write type guard functions for complex data structures. Include examples with proper type narrowing and validation.

๋ชจ๋ฒ” ์‚ฌ๋ก€

  • Always enable strict: true in tsconfig.json for new projects
  • Replace any types with unknown and implement type guards
  • Use type assertions sparingly and prefer type guards instead

ํ”ผํ•˜๊ธฐ

  • Using @ts-ignore to suppress type errors without fixing them
  • Casting to any to bypass type checking
  • Disabling strict flags to avoid fixing type issues

์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ

Is TypeScript strict mode compatible with existing JavaScript code?
Yes, but you may need to add type definitions gradually. Start with strict: false and enable strict flags one by one.
What are the performance implications of strict mode?
Strict mode has minimal runtime impact. Compile time may increase slightly, but the bug prevention benefits outweigh any small performance cost.
Can I use strict mode with popular frameworks like React or Express?
Yes, all major frameworks support TypeScript strict mode. Many framework templates now include strict mode by default.
How do I handle third-party libraries without type definitions?
Use declaration files (.d.ts) or the @types packages. For truly untyped libraries, create minimal type definitions rather than using any.
What is the difference between strict and strictNullChecks?
Strict mode enables all strict flags including strictNullChecks. Individual flags allow gradual migration to full strict mode.
Should I use unknown or generics for flexible functions?
Use unknown when the type is truly unknown. Use generics when you want to preserve type relationships across inputs and outputs.

๊ฐœ๋ฐœ์ž ์„ธ๋ถ€ ์ •๋ณด

์ž‘์„ฑ์ž

Doyajin174

๋ผ์ด์„ ์Šค

MIT

์ฐธ์กฐ

main

ํŒŒ์ผ ๊ตฌ์กฐ

๐Ÿ“„ SKILL.md