t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
34 lines (25 loc) • 743 B
TypeScript
export interface UtilsKeepDecimalInterface {
(num: number, no: number): number
}
export interface UtilsDebounceInterface {
(handle: Function, delay: number): Function
}
export interface UtilsIsNumberInterface {
(target: unknown): target is number
}
export interface UtilsIsBooleanInterface {
(target: unknown): target is boolean
}
export interface UtilsIsStringInterface {
(target: unknown): target is string
}
export interface UtilsPastTimeInterface {
(time: string, format?: string): string
}
export type UtilsPastTimeConfigInterface = Record<string, string>
export interface UtilsAddZeroInterface {
(num: number): string
}
export interface UtilsSizeChangeInterface {
(size: string | number, target = 'px'): string
}