1 | import type { Intrinsics } from "../GetIntrinsic";
|
2 |
|
3 |
|
4 | type TypedProto<P> = { readonly prototype?: P | undefined } & Omit<Function, "prototype">;
|
5 |
|
6 | declare function GetPrototypeFromConstructor<P, K extends keyof Intrinsics>(
|
7 | constructor: TypedProto<P>,
|
8 | intrinsicDefaultProto: K,
|
9 | ): P extends object ? P : Intrinsics[K];
|
10 | declare function GetPrototypeFromConstructor<P>(
|
11 | constructor: TypedProto<P>,
|
12 | intrinsicDefaultProto: string,
|
13 | ): P extends object ? P : object;
|
14 | export = GetPrototypeFromConstructor;
|