Skip to content

Commit 51957cb

Browse files
Merge pull request #1997 from akeldamas/fix-keyof-type-for-symbols
fix(common): update KeyOf type to support symbol keys
2 parents c830cb2 + f53f14e commit 51957cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/config.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ConfigGetOptions {
3636
infer: true;
3737
}
3838

39-
type KeyOf<T> = keyof T extends never ? string : keyof T;
39+
type KeyOf<T> = keyof T extends never ? string | symbol : keyof T;
4040

4141
/**
4242
* @publicApi

0 commit comments

Comments
 (0)