-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.d.ts
40 lines (31 loc) · 1.2 KB
/
env.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
/// <reference types="vite/client" />
declare module '*.md' {
// "unknown" would be more detailed depends on how you structure frontmatter
const attributes: Record<string, unknown>;
// When "Mode.TOC" is requested
const toc: { level: string, content: string }[];
// When "Mode.HTML" is requested
const html: string;
// When "Mode.RAW" is requested
const raw: string
// When "Mode.Vue" is requested
import { ComponentOptions, Component } from 'vue';
const VueComponent: ComponentOptions;
const VueComponentWith: (components: Record<string, Component>) => ComponentOptions;
// Modify below per your usage
export { VueComponent, VueComponentWith };
}
interface ImportMetaEnv {
readonly VITE_KUBERNETES_API: string,
readonly VITE_AUTH_METHOD: 'oidc' | 'access_token' | 'none',
readonly VITE_RUNTIME_AUTH_CONFIG: 'true' | 'false',
readonly VITE_OIDC_PROVIDER: string,
readonly VITE_OIDC_CLIENT_ID: string,
readonly VITE_OIDC_CLIENT_SECRET: string,
readonly VITE_OIDC_SCOPES: string, // space seperated list
// if false, use ephemeral containers under pss:restricted
readonly VITE_DEBUG_PRIVILEGED: 'true' | 'false',
}
interface ImportMeta {
readonly env: ImportMetaEnv,
}