Loading...
Loading...
TypeScript expert for type system, generics, utility types, and strict mode patterns
npx skill4agent add rightnow-ai/openfang typescript-expertstrictnoUncheckedIndexedAccessexactOptionalPropertyTypesanyunknownextendsfunction merge<T extends object, U extends object>(a: T, b: U): T & Utype Readonly<T> = { readonly [K in keyof T]: T[K] }type IsArray<T> = T extends any[] ? true : falsePartial<T>Required<T>Pick<T, K>Omit<T, K>Record<K, V>typetype Event = { type: "click"; x: number } | { type: "keydown"; key: string }function isString(val: unknown): val is string { return typeof val === "string"; }type UserId = string & { readonly __brand: unique symbol }build()default: assertNever(x)function assertNever(x: never): nevertype Route = '/users/${string}/posts/${number}'asenumas constObject.keys()(keyof T)[]string[]