Skip to content

Commit 5fc1ba3

Browse files
committed
Improve types
1 parent 0f5453a commit 5fc1ba3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

v-next/core/src/types/global-options.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import type { ParameterType, ParameterTypeToValueType } from "./common.js";
1+
import type {
2+
ParameterType,
3+
ParameterTypeToValueType,
4+
ParameterValue,
5+
} from "./common.js";
26

37
/**
48
* A global option with an associated value and a default if not provided by
@@ -25,7 +29,7 @@ export interface GlobalOption<T extends ParameterType = ParameterType> {
2529
* Runtime Environment.
2630
*/
2731
// eslint-disable-next-line @typescript-eslint/no-empty-interface -- To be used through module augmentation
28-
export interface GlobalOptions {}
32+
export interface GlobalOptions extends Record<string, ParameterValue> {}
2933

3034
/**
3135
* An entry in the global options map.

0 commit comments

Comments
 (0)