UNPKG

@vitruvius-labs/ts-predicate

Version:
5 lines (4 loc) 317 B
import type { AbstractConstructorOf } from "./definition/type/abstract-constructor-of.mjs"; import type { ConstructorOf } from "./definition/type/constructor-of.mjs"; declare function getConstructorOf<T extends object, C extends AbstractConstructorOf<T> = ConstructorOf<T>>(value: T): C; export { getConstructorOf };