# InstanceType

`import { InstanceType } from "destack:types";`

Extract the instance type from a constructor type.

```ds title="InstanceType"
export type InstanceType<T> = T extends (new (...unknown[]) => infer R) ? InstanceType.R : never
```

[language/library/src/types/function.ds:35](https://github.com/destack-sh/destack/blob/main/language/library/src/types/function.ds#L35)
