[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H9BA1GH9Y8J1545NE5N6QG":3,"skill-same:01M6H9BA1GH9Y8J1545NE5N6QG":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":14,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6H9BA1GH9Y8J1545NE5N6QG","TypeScript",null,"Typed superset of JavaScript that compiles to plain JavaScript, adding optional static types and class-based object-oriented programming.","NeuralBlitz\u002FMito","NeuralBlitz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79354388?v=4","01M6H8T2TFH477HRS0KTSTKR2E","David Riggs","01M6H8T2YQQDXPYM092P670Z21",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fcomputer-science\u002Ftypescript\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"typescript","frontend","javascript","teams","superset","Enterprise","stack","programming","full","programming languages","types","object","2026-11-10 10:12:30",false,"---\nname: TypeScript\ndescription: Typed superset of JavaScript that compiles to plain JavaScript, adding optional static types and class-based object-oriented programming.\nlicense: Apache License 2.0\ncompatibility: TypeScript 4.0+\naudience: Frontend developers, full-stack developers, enterprise teams\ncategory: Programming Languages\n---\n\n# TypeScript\n\n## What I do\n\nI am a typed superset of JavaScript developed by Microsoft in 2012. I compile to plain JavaScript and add optional static types, interfaces, enums, and modern class-based object-oriented features. I help catch errors at compile-time rather than runtime, improve code documentation and autocomplete, and enable better tooling and IDE support. I am widely used in enterprise applications, Angular development, React\u002FVue projects, and any JavaScript project that benefits from static type checking.\n\n## When to use me\n\nUse TypeScript when working on large-scale applications, Angular projects (which require TypeScript), React\u002FVue projects with complex state management, enterprise applications requiring maintainability, teams collaborating on shared codebases, or when you want the safety of static typing with the flexibility of JavaScript.\n\n## Core Concepts\n\n- **Static Type System**: Types are checked at compile-time, catching type-related errors before runtime.\n- **Type Inference**: TypeScript can often infer types automatically, reducing the need for explicit annotations.\n- **Interfaces vs Types**: Interfaces define object shapes and can be extended\u002Fmerged; types define unions, intersections, and aliases.\n- **Generics**: Type-safe constructs that work with various data types while maintaining type safety.\n- **Union and Intersection Types**: Combine multiple types using | (union) or & (intersection).\n- **Utility Types**: Built-in types like Partial, Required, Readonly, Pick, Omit for common transformations.\n- **Decorators (experimental)**: Metadata annotations for classes, methods, and properties (used extensively in Angular).\n- **Modules and Namespaces**: Organize code with ES modules and internal namespaces for grouping related functionality.\n- **Type Guards**: Narrow types within conditional blocks using typeof, instanceof, or custom type guards.\n- **Advanced Patterns**: Conditional types, mapped types, template literal types for complex type manipulations.\n\n## Code Examples\n\n**Basic Types and Interfaces:**\n```typescript\ninterface User {\n  id: number;\n  name: string;\n  email?: string;  \u002F\u002F Optional property\n  readonly createdAt: Date;  \u002F\u002F Read-only property\n}\n\ntype UserUpdate = Partial\u003CUser>;\n\nconst createUser = (name: string, email?: string): User => {\n  return {\n    id: Math.random(),\n    name,\n    email,\n    createdAt: new Date()\n  };\n};\n\nconst user: User = createUser(\"Alice\", \"alice@example.com\");\nconsole.log(user);\n```\n\n**Generics and Utility Types:**\n```typescript\ninterface ApiResponse\u003CT> {\n  data: T;\n  status: number;\n  message: string;\n}\n\ntype UserResponse = ApiResponse\u003CUser>;\ntype PostResponse = ApiResponse\u003CPost>;\n\nconst fetchData = async \u003CT>(url: string): Promise\u003CApiResponse\u003CT>> => {\n  const response = await fetch(url);\n  const data = await response.json();\n  return { data, status: response.status, message: \"Success\" };\n};\n\ntype PartialUser = Partial\u003CUser>;\ntype UserWithoutEmail = Omit\u003CUser, \"email\">;\ntype ReadonlyUser = Readonly\u003CUser>;\n\nconst updateUser = (user: User, updates: PartialUser): User => {\n  return { ...user, ...updates };\n};\n```\n\n**Advanced Type Patterns:**\n```typescript\ntype Primitive = string | number | boolean | null | undefined;\n\ntype NonNullable\u003CT> = T extends null | undefined ? never : T;\n\ntype Flatten\u003CT> = T extends Array\u003Cinfer U> ? U : T;\n\ntype DeepPartial\u003CT> = {\n  [P in keyof T]?: T[P] extends object ? DeepPartial\u003CT[P]> : T[P];\n};\n\ntype EventHandler\u003CE extends string> = (event: E) => void;\n\ntype Coordinates = { x: number; y: number };\ntype NamedCoordinates = Coordinates & { name: string };\n\ntype Shape = \n  | { kind: \"circle\"; radius: number }\n  | { kind: \"square\"; size: number }\n  | { kind: \"rectangle\"; width: number; height: number };\n\nconst getArea = (shape: Shape): number => {\n  switch (shape.kind) {\n    case \"circle\": return Math.PI * shape.radius ** 2;\n    case \"square\": return shape.size ** 2;\n    case \"rectangle\": return shape.width * shape.height;\n  }\n};\n```\n\n**Classes and Access Modifiers:**\n```typescript\nabstract class Animal {\n  protected name: string;\n  private age: number;\n  \n  constructor(name: string, age: number) {\n    this.name = name;\n    this.age = age;\n  }\n  \n  abstract makeSound(): void;\n  \n  getAge(): number {\n    return this.age;\n  }\n  \n  static createDefault(): Animal {\n    return new Dog(\"Default\", 1);\n  }\n}\n\nclass Dog extends Animal {\n  private breed: string;\n  \n  constructor(name: string, age: number, breed: string = \"Mixed\") {\n    super(name, age);\n    this.breed = breed;\n  }\n  \n  makeSound(): void {\n    console.log(`${this.name} barks!`);\n  }\n  \n  public getBreed(): string {\n    return this.breed;\n  }\n}\n\nconst dog = new Dog(\"Buddy\", 3, \"Golden Retriever\");\ndog.makeSound();\n```\n\n## Best Practices\n\n1. **Enable Strict Mode**: Use \"strict\": true in tsconfig.json to enable all strict type-checking options.\n2. **Avoid any Type**: Use unknown for truly unknown types, and prefer specific types over any to maintain type safety.\n3. **Use Interfaces for Objects**: Use interfaces for defining object shapes and class contracts, types for unions, intersections, and primitives.\n4. **Leverage Type Inference**: Let TypeScript infer simple types, but add annotations for function signatures and complex cases.\n5. **Use Discriminated Unions**: Tag union types with a common property for exhaustive type checking in switch statements.\n6. **Prefer Immutable Patterns**: Use readonly for properties that shouldn't change, and const assertions for literal values.\n7. **Write Declaration Files (.d.ts)**: Create type definitions for JavaScript libraries to provide type information to users.\n8. **Use Generic Constraints Wisely**: Limit generics with extends to maintain type safety while allowing flexibility.\n9. **Organize Types Separately**: Keep complex types in separate files or at the bottom of files for better organization.\n10. **Use ESLint with TypeScript Support**: Configure eslint-plugin-typescript for linting TypeScript-specific issues.\n","# TypeScript\n\n## What I do\n\nI am a typed superset of JavaScript developed by Microsoft in 2012. I compile to plain JavaScript and add optional static types, interfaces, enums, and modern class-based object-oriented features. I help catch errors at compile-time rather than runtime, improve code documentation and autocomplete, and enable better tooling and IDE support. I am widely used in enterprise applications, Angular development, React\u002FVue projects, and any JavaScript project that benefits from static type checking.\n\n## When to use me\n\nUse TypeScript when working on large-scale applications, Angular projects (which require TypeScript), React\u002FVue projects with complex state management, enterprise applications requiring maintainability, teams collaborating on shared codebases, or when you want the safety of static typing with the flexibility of JavaScript.\n\n## Core Concepts\n\n- **Static Type System**: Types are checked at compile-time, catching type-related errors before runtime.\n- **Type Inference**: TypeScript can often infer types automatically, reducing the need for explicit annotations.\n- **Interfaces vs Types**: Interfaces define object shapes and can be extended\u002Fmerged; types define unions, intersections, and aliases.\n- **Generics**: Type-safe constructs that work with various data types while maintaining type safety.\n- **Union and Intersection Types**: Combine multiple types using | (union) or & (intersection).\n- **Utility Types**: Built-in types like Partial, Required, Readonly, Pick, Omit for common transformations.\n- **Decorators (experimental)**: Metadata annotations for classes, methods, and properties (used extensively in Angular).\n- **Modules and Namespaces**: Organize code with ES modules and internal namespaces for grouping related functionality.\n- **Type Guards**: Narrow types within conditional blocks using typeof, instanceof, or custom type guards.\n- **Advanced Patterns**: Conditional types, mapped types, template literal types for complex type manipulations.\n\n## Code Examples\n\n**Basic Types and Interfaces:**\n```typescript\ninterface User {\n  id: number;\n  name: string;\n  email?: string;  \u002F\u002F Optional property\n  readonly createdAt: Date;  \u002F\u002F Read-only property\n}\n\ntype UserUpdate = Partial\u003CUser>;\n\nconst createUser = (name: string, email?: string): User => {\n  return {\n    id: Math.random(),\n    name,\n    email,\n    createdAt: new Date()\n  };\n};\n\nconst user: User = createUser(\"Alice\", \"alice@example.com\");\nconsole.log(user);\n```\n\n**Generics and Utility Types:**\n```typescript\ninterface ApiResponse\u003CT> {\n  data: T;\n  status: number;\n  message: string;\n}\n\ntype UserResponse = ApiResponse\u003CUser>;\ntype PostResponse = ApiResponse\u003CPost>;\n\nconst fetchData = async \u003CT>(url: string): Promise\u003CApiResponse\u003CT>> => {\n  const response = await fetch(url);\n  const data = await response.json();\n  return { data, status: response.status, message: \"Success\" };\n};\n\ntype PartialUser = Partial\u003CUser>;\ntype UserWithoutEmail = Omit\u003CUser, \"email\">;\ntype ReadonlyUser = Readonly\u003CUser>;\n\nconst updateUser = (user: User, updates: PartialUser): User => {\n  return { ...user, ...updates };\n};\n```\n\n**Advanced Type Patterns:**\n```typescript\ntype Primitive = string | number | boolean | null | undefined;\n\ntype NonNullable\u003CT> = T extends null | undefined ? never : T;\n\ntype Flatten\u003CT> = T extends Array\u003Cinfer U> ? U : T;\n\ntype DeepPartial\u003CT> = {\n  [P in keyof T]?: T[P] extends object ? DeepPartial\u003CT[P]> : T[P];\n};\n\ntype EventHandler\u003CE extends string> = (event: E) => void;\n\ntype Coordinates = { x: number; y: number };\ntype NamedCoordinates = Coordinates & { name: string };\n\ntype Shape = \n  | { kind: \"circle\"; radius: number }\n  | { kind: \"square\"; size: number }\n  | { kind: \"rectangle\"; width: number; height: number };\n\nconst getArea = (shape: Shape): number => {\n  switch (shape.kind) {\n    case \"circle\": return Math.PI * shape.radius ** 2;\n    case \"square\": return shape.size ** 2;\n    case \"rectangle\": return shape.width * shape.height;\n  }\n};\n```\n\n**Classes and Access Modifiers:**\n```typescript\nabstract class Animal {\n  protected name: string;\n  private age: number;\n  \n  constructor(name: string, age: number) {\n    this.name = name;\n    this.age = age;\n  }\n  \n  abstract makeSound(): void;\n  \n  getAge(): number {\n    return this.age;\n  }\n  \n  static createDefault(): Animal {\n    return new Dog(\"Default\", 1);\n  }\n}\n\nclass Dog extends Animal {\n  private breed: string;\n  \n  constructor(name: string, age: number, breed: string = \"Mixed\") {\n    super(name, age);\n    this.breed = breed;\n  }\n  \n  makeSound(): void {\n    console.log(`${this.name} barks!`);\n  }\n  \n  public getBreed(): string {\n    return this.breed;\n  }\n}\n\nconst dog = new Dog(\"Buddy\", 3, \"Golden Retriever\");\ndog.makeSound();\n```\n\n## Best Practices\n\n1. **Enable Strict Mode**: Use \"strict\": true in tsconfig.json to enable all strict type-checking options.\n2. **Avoid any Type**: Use unknown for truly unknown types, and prefer specific types over any to maintain type safety.\n3. **Use Interfaces for Objects**: Use interfaces for defining object shapes and class contracts, types for unions, intersections, and primitives.\n4. **Leverage Type Inference**: Let TypeScript infer simple types, but add annotations for function signatures and complex cases.\n5. **Use Discriminated Unions**: Tag union types with a common property for exhaustive type checking in switch statements.\n6. **Prefer Immutable Patterns**: Use readonly for properties that shouldn't change, and const assertions for literal values.\n7. **Write Declaration Files (.d.ts)**: Create type definitions for JavaScript libraries to provide type information to users.\n8. **Use Generic Constraints Wisely**: Limit generics with extends to maintain type safety while allowing flexibility.\n9. **Organize Types Separately**: Keep complex types in separate files or at the bottom of files for better organization.\n10. **Use ESLint with TypeScript Support**: Configure eslint-plugin-typescript for linting TypeScript-specific issues.\n",{"name":5,"license":36,"audience":37,"category":38,"description":7,"compatibility":39},"Apache License 2.0","Frontend developers, full-stack developers, enterprise teams","Programming Languages","TypeScript 4.0+","main","2ea764e153842704d24a2e9aa4170441a7f03081",".opencode\u002Fskills\u002Fcomputer-science\u002Ftypescript","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito","https:\u002F\u002Fgithub.com\u002FNeuralBlitz","nuralnexus.org","Independent Multidisciplinary Researcher, Creative Producer, and AI Systems Architect\r\nAn independent creator and research-driven systems designer.","2026-11-12 03:13:05",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add NeuralBlitz\u002FMito --skill TypeScript",{"tool":54,"command":55},"bunx","bunx skills add NeuralBlitz\u002FMito --skill TypeScript",{"tool":57,"command":58},"pnpm","pnpm dlx skills add NeuralBlitz\u002FMito --skill TypeScript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fcomputer-science\u002Ftypescript\u002FSKILL.md",true,[],[63,81,94,107,115,130],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":31},"01M6HAZSAQK1S27CEZYAYJTQDX","wireless-communications","Wireless systems, mobile networks, and 5G\u002F6G","MIT","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwireless-communications\u002FSKILL.md",[],[71,72,73,74,75,76,77,78,79,80],"communications","wireless communications","wireless","systems","engineering","networks","5G","students","opencode","mobile",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":31},"01M6HAZFX6E8NK3WZWDX5YCKYY","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebassembly\u002Fwebsockets\u002FSKILL.md",[],[83,88,89,90,79,91,92,93],"websocket implementation","time","implementation","real-time","websocket","best practices",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":31},"01M6HAZ6DAXBQ7QHXXM1EM7715","vulnerability-auditing","Vulnerability assessment and auditing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvulnerability-auditing\u002FSKILL.md",[],[101,102,103,104,79,105,106],"vulnerability","vulnerability auditing","security","vulnerability assessment","cybersecurity","assessment",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":31},"01M6HAZ3FKF3CS9Z3J96RVE2ZE","vulnerability-assessment","Finding and assessing security vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvue\u002Fvulnerability-assessment\u002FSKILL.md",[],[104,101,106,103,114,79],"vulnerabilities",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":31},"01M6HAYSHM6HKRKEHFP0SGZQX7","vlsi-design","Very-Large-Scale Integration circuit design and semiconductor engineering","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvlsi-design\u002FSKILL.md",[],[122,123,124,125,126,75,127,79,128,78,129],"vlsi design","VLSI","design","hardware","integration","computer","scale","circuit",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":67,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":31},"01M6HAYPQ30FFE2JXD7WQJ8R6C","unsupervised","Unsupervised learning concepts","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvisualization\u002Funsupervised\u002FSKILL.md",[],[132,137,79,138,139,140,141,142],"learning","intelligence","unsupervised learning","machine","concepts","machine-learning"]