-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.d.ts
28 lines (25 loc) · 1.04 KB
/
plugin.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-svg-transformer
export {};
declare global {
export type SvgName = 'download' | 'social/twitter' | 'vite' | 'vue-2' | 'vue' | 'default'
interface Window {
ust: {
options: { cacheDir?: string, global: boolean, libraryDir?: string, svgDir?: string, useTypes: boolean, isTesting: boolean, isNuxt: boolean, nuxtDir: string, fallback: string, svg: { classDefault?: string[], clearSize: 'all' | 'parent' | 'none', clearClass: 'all' | 'parent' | 'none', clearStyle: 'all' | 'parent' | 'none', currentColor: boolean, inlineStyleDefault?: string[], sizeInherit: boolean, title?: boolean }, warning: boolean }
svgList: Record<SvgName, () => Promise<{ default: string }>>
importSvg: (name: SvgName) => Promise<string>
}
}
}
declare module 'vue' {
export interface GlobalComponents {
SvgIcon: typeof import('./dist/vue')['SvgIcon']
}
}
window.ust = {
options: options || {},
svgList: svgList || {},
importSvg: importSvg || function () {},
} || {}