-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
Copy pathindex.d.ts
76 lines (64 loc) · 2.18 KB
/
index.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// @ts-ignore
/// <reference types="@quasar/vite-plugin" />
import type { Plugin } from "vite";
export interface QuasarPluginOpts {
/**
* Auto import - how to detect components in your vue files
* "kebab": q-carousel q-page
* "pascal": QCarousel QPage
* "combined": q-carousel QPage
*/
autoImportComponentCase?: "kebab" | "pascal" | "combined";
/**
* Auto import - which file extensions should be interpreted as referring to Vue SFC?
* @default [ 'vue' ]
*/
autoImportVueExtensions?: string[];
/**
* Auto import - which file extensions should be interpreted as referring to script files?
* @default [ 'js', 'jsx', 'ts', 'tsx' ]
*/
autoImportScriptExtensions?: string[];
/**
* Would you like to use Quasar's SCSS/Sass variables?
* true
* --> yes, all my vue files will be able to use $primary etc
* false
* --> no, don't make the variables available in vue files
* "src/my-variables.sass"
* --> yes, and I'd also like to customize those variables
*/
sassVariables?: string | boolean;
/**
* How will Quasar be used? In a:
* "web-client" (default)
* "ssr-server" (used by @quasar/app-vite)
* "ssr-client" (used by @quasar/app-vite)
*/
runMode?: "web-client" | "ssr-client" | "ssr-server";
/**
* Treeshake Quasar's UI on dev too?
* Recommended to leave this as false for performance reasons.
* @default false
*/
devTreeshaking?: boolean;
}
export function quasar(opts?: QuasarPluginOpts): Plugin;
// `TransformAssetUrls` copy of https://github.com/vuejs/vue-next/blob/2c221fcd497d1541e667892ed908631df7e4a745/packages/compiler-sfc/src/compileTemplate.ts#L67
export interface AssetURLTagConfig {
[name: string]: string[];
}
export interface AssetURLOptions {
/**
* If base is provided, instead of transforming relative asset urls into
* imports, they will be directly rewritten to absolute urls.
*/
base?: string | null;
/**
* If true, also processes absolute urls.
*/
includeAbsolute?: boolean;
tags?: AssetURLTagConfig;
}
export type TransformAssetUrls = AssetURLOptions | AssetURLTagConfig | boolean;
export const transformAssetUrls: AssetURLOptions;