Skip to content

Commit f53f14e

Browse files
committedMar 26, 2025·
fix(common): update KeyOf type to support symbol keys
This change extends the KeyOf type to support symbol keys when keyof T extends never. This allows the config service to properly handle configurations that use symbols as keys. Closes #1996
1 parent c830cb2 commit f53f14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/config.service.ts

+1-1
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)
Please sign in to comment.