routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
import type { Ref } from 'vue';
|
||||
export interface DateFormatProps {
|
||||
inputFormat?: string;
|
||||
}
|
||||
export declare const makeDateFormatProps: <Defaults extends {
|
||||
inputFormat?: unknown;
|
||||
} = {}>(defaults?: Defaults | undefined) => {
|
||||
inputFormat: unknown extends Defaults["inputFormat"] ? {
|
||||
type: StringConstructor;
|
||||
validator: (v: string) => boolean;
|
||||
} : Omit<{
|
||||
type: StringConstructor;
|
||||
validator: (v: string) => boolean;
|
||||
}, "default" | "type"> & {
|
||||
type: import("vue").PropType<unknown extends Defaults["inputFormat"] ? string : string | Defaults["inputFormat"]>;
|
||||
default: unknown extends Defaults["inputFormat"] ? string : string | Defaults["inputFormat"];
|
||||
};
|
||||
};
|
||||
export declare function useDateFormat(props: DateFormatProps, locale: Ref<string>): {
|
||||
isValid: (text: string) => boolean;
|
||||
parseDate: (dateString: string) => unknown;
|
||||
formatDate: (value: unknown) => string;
|
||||
parserFormat: Readonly<Ref<string, string>>;
|
||||
};
|
||||
Reference in New Issue
Block a user