agentsclimarketplace

Vant skill typescript

Skill dhaupin/vant/models/public/skills/vant-skill-typescript

Typed JavaScript.From its SKILL.md

Install
npx -y skills add dhaupin/vant --skill vant-skill-typescript

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 16 stars16 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

0.8 KB, 216 tokens by cl100k_base, as published. Nobody here has run it

TypeScript

Typed JavaScript.


When To Use

  • Type safety needed
  • Large codebases
  • Modern JS projects

What To Do

1. Types

interface User {
  id: number
  name: string
  email?: string  // optional
}

function getUser(id: number): User {
  return { id, name: 'User' }
}

2. Generics

function first<T>(arr: T[]): T {
  return arr[0]
}

3. Compile

npx tsc --init
npx tsc
npx tsc --watch

4. Config

{
  "compilerOptions": {
    "target": "ES2020",
    "module": "commonjs",
    "strict": true
  }
}

Role: TypeScript Developer
Input: .ts files
Output: .js files

Typed JS.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 608,119. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.