1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
/* eslint-disable no-unused-vars */
2
3
import type {
3
4
CSSProperties ,
@@ -19,7 +20,7 @@ import type { EventBusKey } from '@vueuse/core';
19
20
20
21
21
22
// -------------------------------------------------- Types //
22
- export type FieldValue = string | boolean | number | object | [ ] | null | { [ key : string ] : string | unknown ; } ;
23
+ export type FieldValue = any ;
23
24
export type TimeOpened = Date | null ;
24
25
25
26
export type GlobalDensity = VCheckbox [ '$props' ] [ 'density' ] | VSelect [ '$props' ] [ 'density' ] | VSwitch [ '$props' ] [ 'density' ] | VTextField [ '$props' ] [ 'density' ] | VTextarea [ '$props' ] [ 'density' ] ;
@@ -67,7 +68,7 @@ export interface SharedProps {
67
68
disabled ?: boolean ;
68
69
emptyText ?: string ;
69
70
error ?: boolean ;
70
- falseValue ?: boolean | string ;
71
+ falseValue ?: boolean | string | undefined ;
71
72
fieldOnly ?: boolean ;
72
73
hideDetails ?: boolean ;
73
74
hideSaveIcon ?: boolean ;
@@ -93,7 +94,7 @@ export interface SharedProps {
93
94
saveIcon ?: string | undefined ;
94
95
saveIconColor ?: string ;
95
96
tableField ?: boolean ;
96
- trueValue ?: boolean | string ;
97
+ trueValue ?: boolean | string | undefined ;
97
98
truncateLength ?: number | undefined ;
98
99
truncateSuffix ?: string | undefined ;
99
100
underlineColor ?: string ;
@@ -176,7 +177,7 @@ export interface DisplayValueProps {
176
177
displayPrependInnerIcon : SharedProps [ 'displayPrependInnerIcon' ] ;
177
178
displayPrependInnerIconColor : SharedProps [ 'displayPrependInnerIconColor' ] ;
178
179
displayValue : any ;
179
- empty ?: MaybeRef < boolean > | boolean | undefined ;
180
+ empty ?: Ref < boolean > | boolean ;
180
181
error ?: MaybeRef < boolean > | boolean | undefined ;
181
182
field : string ;
182
183
underlineColor ?: SharedProps [ 'underlineColor' ] ;
@@ -388,3 +389,12 @@ export interface UseConvertToUnit {
388
389
}
389
390
) : string | void ;
390
391
}
392
+
393
+ export interface UseTruthyModelValue {
394
+ (
395
+ options : {
396
+ modelValue : any ,
397
+ trueValue ?: any ,
398
+ }
399
+ ) : boolean ;
400
+ }
0 commit comments