fix type
This commit is contained in:
parent
ce88357dd4
commit
051ffb3197
|
@ -72,9 +72,9 @@ const props = withDefaults(defineProps<{
|
||||||
|
|
||||||
type RolePolicyEditorValueItem = {
|
type RolePolicyEditorValueItem = {
|
||||||
value: GetRolePolicyEditorValuesType<typeof rolePolicyEditorDef[keyof typeof rolePolicyEditorDef]>;
|
value: GetRolePolicyEditorValuesType<typeof rolePolicyEditorDef[keyof typeof rolePolicyEditorDef]>;
|
||||||
} & (
|
} | (
|
||||||
(UD extends true ? { useDefault: boolean } : never) &
|
(UD extends true ? { useDefault: boolean } : Record<string, never>) |
|
||||||
(WP extends true ? { priority: 0 | 1 | 2 } : never)
|
(WP extends true ? { priority: 0 | 1 | 2 } : Record<string, never>)
|
||||||
);
|
);
|
||||||
|
|
||||||
type RolePolicyEditorValue = {
|
type RolePolicyEditorValue = {
|
||||||
|
|
Loading…
Reference in New Issue