Skip to content
T

typescript

TypeScript style and type safety

by lobehubFree

Launch
#1020in 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-review

Review TypeScript and JavaScript code changes for compliance

AI Skills
Launch
T

typescript-write

Write or modify TypeScript and JavaScript code

AI Skills
Launch
T

typescript-pro

Implements advanced TypeScript type systems, creates custom type guards

AI Skills
Launch
P

principle-type-system-discipline

Apply when designing types, reviewing a function signature

AI Skills
Launch
M

migrate-to-shoehorn

Migrate test files from `as` type assertions to @total-typescript/shoehorn

AI Skills
Launch
S

setup-ts-deep-modules

Wire dependency-cruiser into a TypeScript repo

AI Skills
Launch

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-review, typescript-write and typescript-pro. See all typescript alternatives

Developer Stuff

Badges