forked from CringeStudios/element-desktop
16 lines
730 B
Diff
16 lines
730 B
Diff
![]() |
diff --git a/node_modules/conf/dist/source/index.d.ts b/node_modules/conf/dist/source/index.d.ts
|
||
|
index 70d6dd0..fb23a4e 100644
|
||
|
--- a/node_modules/conf/dist/source/index.d.ts
|
||
|
+++ b/node_modules/conf/dist/source/index.d.ts
|
||
|
@@ -44,6 +44,10 @@ declare class Conf<T extends Record<string, any> = Record<string, unknown>> impl
|
||
|
@param key - The key of the item to delete.
|
||
|
*/
|
||
|
delete<Key extends keyof T>(key: Key): void;
|
||
|
+ // This overload is used for dot-notation access.
|
||
|
+ // We exclude `keyof T` as an incorrect type for the default value should not fall through to this overload.
|
||
|
+ delete<Key extends string>(key: Exclude<Key, keyof T>): void;
|
||
|
+ delete(key: string): void;
|
||
|
/**
|
||
|
Delete all items.
|
||
|
|