InstanceType import { InstanceType } from "destack:types"; Extract the instance type from a constructor type. export type InstanceType = T extends (new (...unknown[]) => infer R) ? InstanceType.R : never language/library/src/types/function.ds:35