Vanha frontend siirretty temp/. Uusi rakenne: - StatusBar.astro, Terminal.astro, Editor.astro, Guide.astro - global.css erillinen - Wasm pääsäikeessä (ei Worker — yksinkertainen, debugattava) - Tab-completion, dropdown, projektikortti, Monaco, GUIDE.md - Ei tokenisointia eikä koodilaboratoriota Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
856 B
TypeScript
16 lines
856 B
TypeScript
import type { PathLike } from 'node:fs';
|
|
export declare function writeJson<T>(path: PathLike, data: T): Promise<void>;
|
|
export declare function removeDir(dir: PathLike): Promise<void>;
|
|
export declare function emptyDir(dir: PathLike): Promise<void>;
|
|
export declare function getFilesFromFolder(dir: URL): Promise<URL[]>;
|
|
/**
|
|
* Copies files into a folder keeping the folder structure intact.
|
|
* The resulting file tree will start at the common ancestor.
|
|
*
|
|
* @param {URL[]} files A list of files to copy (absolute path).
|
|
* @param {URL} outDir Destination folder where to copy the files to (absolute path).
|
|
* @param {URL[]} [exclude] A list of files to exclude (absolute path).
|
|
* @returns {Promise<string>} The common ancestor of the copied files.
|
|
*/
|
|
export declare function copyFilesToFolder(files: URL[], outDir: URL, exclude?: URL[]): Promise<string>;
|