1 | import type { PropertyDescriptor } from "../index";
|
2 |
|
3 | declare function assertRecord<K extends string>(
|
4 | ES: K extends keyof assertRecord.Predicates ? Parameters<assertRecord.Predicates[K]>[0] : object,
|
5 | recordType: K,
|
6 | argumentName: string,
|
7 | value: K extends keyof assertRecord.Predicates ? Parameters<assertRecord.Predicates[K]>[1] : unknown,
|
8 | ): void;
|
9 |
|
10 | declare namespace assertRecord {
|
11 | interface Predicates {
|
12 | "Property Descriptor": (
|
13 | ES: {
|
14 | Type(o: unknown): string | undefined;
|
15 | },
|
16 | Desc: PropertyDescriptor,
|
17 | ) => boolean;
|
18 | }
|
19 | }
|
20 |
|
21 | export = assertRecord;
|