Skip to content

Commit a4bbb02

Browse files
committed
feat(global-config): updated type argument to accept arbitrary values
1 parent 5dc48e0 commit a4bbb02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Support/GlobalConfig.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type WithProperty<T, K extends PropertyKey> = T & {
55
[P in K]: Exclude<P extends keyof T ? T[P] : unknown, undefined>
66
};
77

8-
export default class GlobalConfig<T extends Configuration> {
8+
export default class GlobalConfig<T extends Configuration & Record<PropertyKey, any>> {
99
/**
1010
* The configuration object.
1111
*
@@ -23,7 +23,7 @@ export default class GlobalConfig<T extends Configuration> {
2323
*
2424
* @param {object} configuration
2525
*/
26-
public constructor(configuration?: Record<PropertyKey, any> & T) {
26+
public constructor(configuration?: T) {
2727
if (configuration) {
2828
merge(GlobalConfig.configuration, configuration);
2929
}

0 commit comments

Comments
 (0)