types: complete dirctives and v-auth custom color

This commit is contained in:
warmthsea
2024-05-29 10:03:03 +08:00
parent a8377f8d45
commit 577b2d3977
6 changed files with 21 additions and 5 deletions

13
types/directives.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
import type { Directive } from "vue";
import type { CopyEl } from "../src/directives/copy/index";
declare module "vue" {
export interface ComponentCustomProperties {
vLoading: Directive<Element, boolean>;
vAuth: Directive<HTMLElement, string | Array<string>>;
vCopy: Directive<CopyEl, string>;
vLongpress: Directive<HTMLElement, Function>;
}
}
export {};