AGENT SKILL
typescript
TypeScript typed superset of JavaScript for safer, more maintainable code
适用职业开发工程师
- License 许可
- MIT
- 所属仓库
- NeuralBlitz/Mito
- 最近更新
- 2026-04-21
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- typescript
- license
- MIT
- metadata
- { "audience": "developers", "category": "programming-languages" }
- description
- TypeScript typed superset of JavaScript for safer, more maintainable code
- compatibility
- opencode
03 SKILL.md 正文
What I do
- Write type-safe TypeScript code
- Use generics for reusable types
- Create interfaces and type aliases
- Implement advanced utility types
- Configure tsconfig for projects
- Handle strict null checking
When to use me
When building JavaScript applications that need type safety and better tooling.
Basic Types
let name: string = "John";
let age: number = 30;
let isActive: boolean = true;
let numbers: number[] = [1, 2, 3];
let anything: any = "hello";
let unknown: unknown = "world";
function log(): void { }
function fail(): never { throw new Error(); }
Interfaces & Types
interface User {
id: number;
name: string;
email?: string;
readonly createdAt: Date;
}
type Status = "pending" | "active" | "disabled";
type ID = string | number;
Functions
function greet(name: string): string {
return `Hello, ${name}`;
}
const add = (a: number, b: number): number => a + b;
function createUser(name: string, age?: number = 18): User {
return { name, age };
}
Generics
function identity<T>(value: T): T {
return value;
}
interface Box<T> {
value: T;
}
Utility Types
type PartialUser = Partial<User>;
type UserPreview = Pick<User, "id" | "name">;
type UserWithoutPassword = Omit<User, "password">;
04 同仓库更多 Skills
wireless-communications
Wireless systems, mobile networks, and 5G/6G
★ 0
websockets
WebSocket implementation and best practices
★ 0
vulnerability-auditing
Vulnerability assessment and auditing
★ 0
vulnerability-assessment
Finding and assessing security vulnerabilities
★ 0
vlsi-design
Very-Large-Scale Integration circuit design and semiconductor engineering
★ 0
unsupervised
Unsupervised learning concepts
★ 0