Skip to content
T

typescript

TypeScript style and type safety

by lobehubFree

#1021in AI Skills
0In stores

Description

typescript is an agent skill from the LobeHub repository with a style guide for TypeScript and TSX code. It covers types and type safety, an…

Highlights

  • Rules for inference, any and explicit types
  • Prefers interface for object shapes and type for unions
  • Asks for async APIs in new input and output code
  • Warns against namespaces in favor of ES module augmentation

Ratings & Reviews

No ratings yet

Be the first to rate typescript.

People also visit

T

typescript-magician

Designs complex generic types, refactors `any` types to strict alternatives

AI Skills
Get
T

typescript-best-practices

Reading or writing TypeScript or JavaScript files

AI Skills
Get
T

typescript

TypeScript performance, tsconfig, type errors, async patterns

AI Skills
Get
P

python-type-safety

Python type safety with type hints, generics, protocols

AI Skills
Get
T

typescript-write

Write or modify TypeScript and JavaScript code

AI Skills
Get
E

effect-ts

Nontrivial Effect 4 work including services/layers, typed errors

AI Skills
Get

typescript FAQ

Which files does the guide cover?

TypeScript files, TSX, and MTS files in the LobeHub repository.

Should I use @ts-ignore?

The guide prefers @ts-expect-error over @ts-ignore, and it advises against as any.

What does it say about sync code?

New input and output code should use async APIs by default. Synchronous calls are accepted only where a synchronous contract is already fixed.

How do I install it?

Run npx skills add https://github.com/lobehub/lobehub --skill typescript.

Which security audits does it have?

On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.

What are the best typescript alternatives?

Popular alternatives to typescript include typescript-magician, typescript-best-practices and typescript. See all typescript alternatives

Developer Stuff

Badges