소스 정보
- 저장소
- ffsshhttiikk/opencode-agents-skills
- 최근 소스 활동
- 2026년 2월 28일 22:55
- 감지된 SKILL.md 언어
- 영어
- 스타
- 3
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- typescript
- description
- TypeScript typed superset of JavaScript for safer, more maintainable code
- license
- MIT
- compatibility
- opencode
- metadata
- {"audience":"developers","category":"programming-languages"}
## 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
```typescript
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
```typescript
interface User {
id: number;
name: string;
email?: string;
readonly createdAt: Date;
}
type Status = "pending" | "active" | "disabled";
type ID = string | number;
```
## Functions
```typescript
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
```typescript
function identity<T>(value: T): T {
return value;
}
interface Box<T> {
value: T;
}
```
## Utility Types
```typescript
type PartialUser = Partial<User>;
type UserPreview = Pick<User, "id" | "name">;
type UserWithoutPassword = Omit<User, "password">;
```
GitHub에서 보기