init component

This commit is contained in:
Robin COuret
2026-02-16 17:28:37 +01:00
parent 460c7a25e0
commit e0e50af706
4557 changed files with 666911 additions and 8 deletions

35
node_modules/buetify/lib/composables/model/useModel.d.ts generated vendored Executable file
View File

@@ -0,0 +1,35 @@
import { FunctionN, Lazy } from 'fp-ts/lib/function';
import { PropType, Ref } from 'vue';
export declare function getUseModelPropsDefinition<T>(): {
modelValue: {
type: PropType<T>;
required: false;
};
'onUpdate:modelValue': {
type: PropType<FunctionN<[T], void>>;
default: Lazy<FunctionN<[T], void>>;
};
};
export declare function getUseModelPropsDefinition<T, ValueKey extends string, UpdateKey extends string>(valueKey: ValueKey, updateKey: UpdateKey): {
[K in ValueKey]: {
type: PropType<T>;
required: false;
};
} & {
[K in UpdateKey]: {
type: PropType<FunctionN<[T], void>>;
default: Lazy<FunctionN<[T], void>>;
};
};
export declare type UseModelProps<T, ValueKey extends string = 'modelValue', UpdateKey extends string = 'onUpdate:modelValue'> = {
[K in ValueKey]?: T | undefined;
} & {
[K in UpdateKey]: FunctionN<[T], void>;
};
export declare function useModel<T>(props: UseModelProps<T>): Model<T>;
export declare function useModel<T, ValueKey extends string, UpdateKey extends string>(props: UseModelProps<T, ValueKey, UpdateKey>, valueKey: ValueKey, updateKey: UpdateKey): Model<T>;
export declare type Model<T> = {
set: FunctionN<[T], void>;
modelValue: Ref<T | undefined>;
onNativeInput: FunctionN<[Event], void>;
};