/ concept-collection / turing-surface
concept-collection / turing-surface
15 lines · 512 BBlameHistoryRaw
1/** Vite's `?raw` suffix imports a file's text. Used to load .m model sources. */
2declare module '*?raw' {
3 const source: string;
4 export default source;
5}
7/** Vite's `import.meta.glob`, used to load every .m in tools/ at once
8 * (src/tools.ts). Only the eager + `?raw` form this project uses is
9 * declared — it returns each match's text, keyed by path. */
10interface ImportMeta {
11 glob(
12 pattern: string,
13 options: { query: '?raw'; eager: true; import: 'default' },
14 ): Record<string, string>;