Spaces:
Running
Running
Download node_modules/@k-l-lambda/web-editor/lib/backend/fileProxy.d.ts from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40k-l-lambda/web-editor/lib/backend/fileProxy.d.ts
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/@k-l-lambda/web-editor/lib/backend/fileProxy.d.ts
-
curl -L -o fileProxy.d.ts https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/%40k-l-lambda/web-editor/lib/backend/fileProxy.d.ts
686 Bytes
| /// <reference types="node" /> | |
| import fs from "fs"; | |
| import { EventEmitter } from "events"; | |
| export default class FileProxy extends EventEmitter { | |
| content: string; | |
| timestamp: number; | |
| diskTimestamp: number; | |
| filePath: string; | |
| alive: boolean; | |
| writeFile: () => void; | |
| fileListener: (curr: fs.Stats) => Promise<void>; | |
| constructor(filePath: string); | |
| dispose(): void; | |
| makeWritePromise(): Promise<void>; | |
| keepWriteFile(): Promise<void>; | |
| get hash(): string; | |
| fullSync(): void; | |
| increase({ timestamp, fromHash, toHash, patch }: { | |
| timestamp: number; | |
| fromHash: string; | |
| toHash: string; | |
| patch: string; | |
| }): void; | |
| } | |