lucid-extension-sdk 0.0.414 → 0.0.415
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/optionalkey.d.ts +5 -0
- package/package.json +1 -1
package/core/optionalkey.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export type WithUndefinedAsOptional<T extends object> = {
|
|
|
12
12
|
} & {
|
|
13
13
|
[key in DefinedKeys<T>]-?: T[key];
|
|
14
14
|
};
|
|
15
|
+
export type ReadonlyWithUndefinedAsOptional<T extends object> = {
|
|
16
|
+
+readonly [key in keyof T]+?: T[key];
|
|
17
|
+
} & {
|
|
18
|
+
+readonly [key in DefinedKeys<T>]-?: T[key];
|
|
19
|
+
};
|
|
15
20
|
export type WithUndefinedAsOptionalRecursive<T> = T extends object ? {
|
|
16
21
|
[key in DefinedKeys<T>]-?: WithUndefinedAsOptionalRecursive<T[key]>;
|
|
17
22
|
} & {
|