Add nsite deployments

This commit is contained in:
Alex Gleason committed 2025-10-20 13:08:29 -05:00
1 parent 97f312c3d3
commit 17898607d1
10 files changed
+503 -16

No files matched your search

+3 -3
View File
@@ -4,14 +4,14 @@
*/
export interface JSRuntimeFS {
// Core file operations with proper overloads for type safety
readFile(path: string): Promise<Uint8Array>;
readFile(path: string): Promise<Uint8Array<ArrayBuffer>>;
readFile(path: string, options: 'utf8'): Promise<string>;
readFile(path: string, options: string): Promise<string>;
readFile(path: string, options: { encoding: 'utf8' }): Promise<string>;
readFile(path: string, options: { encoding: string }): Promise<string>;
readFile(path: string, options?: string | { encoding?: string }): Promise<string | Uint8Array>;
readFile(path: string, options?: string | { encoding?: string }): Promise<string | Uint8Array<ArrayBuffer>>;
writeFile(path: string, data: string | Uint8Array, options?: string | { encoding?: string }): Promise<void>;
writeFile(path: string, data: string | Uint8Array<ArrayBuffer>, options?: string | { encoding?: string }): Promise<void>;
// readdir overloads for different return types
readdir(path: string): Promise<string[]>;