/ concept-collection / turing-surface-cache
Sign in
concept-collection / turing-surface-cache
turing-surface-cache / src / raw.d.ts
15 lines · 512 BCodeBlameHistory
4f822e1turing-surface-cache: reaction-diffusion solutions at a chosen end time, shared through a cloud cacheJeremy Magland 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>;
moveopenescclose