We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dc48e0 commit a4bbb02Copy full SHA for a4bbb02
src/Support/GlobalConfig.ts
@@ -5,7 +5,7 @@ type WithProperty<T, K extends PropertyKey> = T & {
5
[P in K]: Exclude<P extends keyof T ? T[P] : unknown, undefined>
6
};
7
8
-export default class GlobalConfig<T extends Configuration> {
+export default class GlobalConfig<T extends Configuration & Record<PropertyKey, any>> {
9
/**
10
* The configuration object.
11
*
@@ -23,7 +23,7 @@ export default class GlobalConfig<T extends Configuration> {
23
24
* @param {object} configuration
25
*/
26
- public constructor(configuration?: Record<PropertyKey, any> & T) {
+ public constructor(configuration?: T) {
27
if (configuration) {
28
merge(GlobalConfig.configuration, configuration);
29
}
0 commit comments