Skip to content

TypeScript ​

Omit & Pick & Partial & Required ​

todo

https://segmentfault.com/a/1190000041910773

覆盖继承的类型 ​

https://segmentfault.com/q/1010000041109109

ts
type Override<P, S> = Omit<P, keyof S> & S;

ts 忽略 ​

当行忽略

@ts-ignore

全文忽略

@ts-nocheck

ts-node --transpile-only ​

https://geek-docs.com/typescript/typescript-questions/6_typescript_how_to_use_tsnode_regardless_of_errors.html

忽略类型检查

sh
ts-node