mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-14 10:04:03 +00:00
33 lines
970 B
TypeScript
33 lines
970 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_SDWEB_BASE_URL: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
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.React" is requested. VFC could take a generic like React.VFC<{ MyComponent: TypeOfMyComponent }>
|
|
import React from 'react';
|
|
const ReactComponent: React.VFC;
|
|
|
|
// 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 { attributes, toc, html, ReactComponent, VueComponent, VueComponentWith };
|
|
}
|