Skip to content

Commit b2c2eba

Browse files
Update types
1 parent 5f0339e commit b2c2eba

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

dist/types/index.d.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import type { CSSProperties, JSXComponent, MaybeRef, Ref } from 'vue';
22
import type { VBtn, VCheckbox, VIcon, VSelect, VSwitch, VTextField, VTextarea } from 'vuetify/components';
33
import type { IconOptions, ThemeInstance } from 'vuetify';
44
import type { EventBusKey } from '@vueuse/core';
5-
export type FieldValue = string | boolean | number | object | [] | null | {
6-
[key: string]: string | unknown;
7-
};
5+
export type FieldValue = any;
86
export type TimeOpened = Date | null;
97
export type GlobalDensity = VCheckbox['$props']['density'] | VSelect['$props']['density'] | VSwitch['$props']['density'] | VTextField['$props']['density'] | VTextarea['$props']['density'];
108
export type GlobalVariant = VSelect['$props']['variant'] | VTextField['$props']['variant'] | VTextarea['$props']['variant'];
@@ -42,7 +40,7 @@ export interface SharedProps {
4240
disabled?: boolean;
4341
emptyText?: string;
4442
error?: boolean;
45-
falseValue?: boolean | string;
43+
falseValue?: boolean | string | undefined;
4644
fieldOnly?: boolean;
4745
hideDetails?: boolean;
4846
hideSaveIcon?: boolean;
@@ -68,7 +66,7 @@ export interface SharedProps {
6866
saveIcon?: string | undefined;
6967
saveIconColor?: string;
7068
tableField?: boolean;
71-
trueValue?: boolean | string;
69+
trueValue?: boolean | string | undefined;
7270
truncateLength?: number | undefined;
7371
truncateSuffix?: string | undefined;
7472
underlineColor?: string;
@@ -126,7 +124,7 @@ export interface DisplayValueProps {
126124
displayPrependInnerIcon: SharedProps['displayPrependInnerIcon'];
127125
displayPrependInnerIconColor: SharedProps['displayPrependInnerIconColor'];
128126
displayValue: any;
129-
empty?: MaybeRef<boolean> | boolean | undefined;
127+
empty?: Ref<boolean> | boolean;
130128
error?: MaybeRef<boolean> | boolean | undefined;
131129
field: string;
132130
underlineColor?: SharedProps['underlineColor'];
@@ -252,3 +250,9 @@ export interface UseConvertToUnit {
252250
unit?: string;
253251
}): string | void;
254252
}
253+
export interface UseTruthyModelValue {
254+
(options: {
255+
modelValue: any;
256+
trueValue?: any;
257+
}): boolean;
258+
}

0 commit comments

Comments
 (0)