index.d.ts 958 B

12345678910111213141516
  1. import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
  2. type EmptyValuesContext = ExtractPropTypes<typeof useEmptyValuesProps>;
  3. export declare const emptyValuesContextKey: InjectionKey<Ref<EmptyValuesContext>>;
  4. export declare const SCOPE = "use-empty-values";
  5. export declare const DEFAULT_EMPTY_VALUES: (string | null | undefined)[];
  6. export declare const DEFAULT_VALUE_ON_CLEAR: undefined;
  7. export declare const useEmptyValuesProps: {
  8. readonly emptyValues: ArrayConstructor;
  9. readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
  10. };
  11. export declare const useEmptyValues: (props: EmptyValuesContext, defaultValue?: null | undefined) => {
  12. emptyValues: import("vue").ComputedRef<unknown[]>;
  13. valueOnClear: import("vue").ComputedRef<any>;
  14. isEmptyValue: (value: any) => boolean;
  15. };
  16. export {};