|
4 | 4 |
|
5 | 5 | ## Table of contents |
6 | 6 |
|
7 | | -### Namespaces |
8 | | - |
9 | | -- [createConstMap](modules/createConstMap.md) |
10 | | - |
11 | | -### Classes |
12 | | - |
13 | | -- [default](classes/default.md) |
14 | | - |
15 | 7 | ### Type aliases |
16 | 8 |
|
17 | 9 | - [Constant](modules.md#constant) |
18 | 10 |
|
| 11 | +### Properties |
| 12 | + |
| 13 | +- [default](modules.md#default) |
| 14 | + |
19 | 15 | ### Functions |
20 | 16 |
|
21 | 17 | - [createConst](modules.md#createconst) |
|
44 | 40 |
|
45 | 41 | #### Defined in |
46 | 42 |
|
47 | | -[const.ts:6](https://github.com/zimmed/const/blob/f05162f/src/const.ts#L6) |
| 43 | +[const.ts:6](https://github.com/zimmed/const/blob/16363f1/src/const.ts#L6) |
| 44 | + |
| 45 | +## Properties |
| 46 | + |
| 47 | +### default |
| 48 | + |
| 49 | +• **default**: `Object` |
| 50 | + |
| 51 | +#### Type declaration |
| 52 | + |
| 53 | +| Name | Type | |
| 54 | +| :------ | :------ | |
| 55 | +| `create` | <K, T\>(`value`: `K`, `__namedParameters`: { `$label?`: `string` ; `label?`: `string` } & `Partial`<`T`\>) => [`Constant`](modules.md#constant)<`K`\> & `T` | |
| 56 | +| `createMap` | <O\>(`constMap`: `O`, `$label?`: `string`) => { readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} & `Iterable`<{ readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} extends { [k: string]: infer C; } ? `C` : `never`\> | |
| 57 | +| `createMapStrict` | <T\>() => <O\>(`constMap`: `O`, `$label?`: `string`) => { readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} & `Iterable`<{ readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} extends { [k: string]: infer C; } ? `C` : `never`\> | |
| 58 | +| `createStrictMap` | <T\>() => <O\>(`constMap`: `O`, `$label?`: `string`) => { readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} & `Iterable`<{ readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} extends { [k: string]: infer C; } ? `C` : `never`\> | |
| 59 | +| `createTypedMap` | <T\>() => <O\>(`constMap`: `O`, `$label?`: `string`) => { readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} & `Iterable`<{ readonly[K in string \| number \| symbol]: K extends string ? Constant<K\> & Omit<O[K], "label" \| "$label"\> : never} extends { [k: string]: infer C; } ? `C` : `never`\> | |
| 60 | +| `list` | <T\>(...`keys`: `T`[]) => `R` | |
48 | 61 |
|
49 | 62 | ## Functions |
50 | 63 |
|
|
72 | 85 |
|
73 | 86 | #### Defined in |
74 | 87 |
|
75 | | -[const.ts:11](https://github.com/zimmed/const/blob/f05162f/src/const.ts#L11) |
| 88 | +[const.ts:11](https://github.com/zimmed/const/blob/16363f1/src/const.ts#L11) |
76 | 89 |
|
77 | 90 | ___ |
78 | 91 |
|
|
98 | 111 |
|
99 | 112 | #### Defined in |
100 | 113 |
|
101 | | -[const.ts:66](https://github.com/zimmed/const/blob/f05162f/src/const.ts#L66) |
| 114 | +[const.ts:66](https://github.com/zimmed/const/blob/16363f1/src/const.ts#L66) |
102 | 115 |
|
103 | 116 | ___ |
104 | 117 |
|
|
125 | 138 |
|
126 | 139 | #### Defined in |
127 | 140 |
|
128 | | -[const.ts:33](https://github.com/zimmed/const/blob/f05162f/src/const.ts#L33) |
| 141 | +[const.ts:33](https://github.com/zimmed/const/blob/16363f1/src/const.ts#L33) |
129 | 142 |
|
130 | 143 | ___ |
131 | 144 |
|
|
164 | 177 |
|
165 | 178 | #### Defined in |
166 | 179 |
|
167 | | -[const.ts:61](https://github.com/zimmed/const/blob/f05162f/src/const.ts#L61) |
| 180 | +[const.ts:61](https://github.com/zimmed/const/blob/16363f1/src/const.ts#L61) |
0 commit comments