@lmzhen/dsh-evolution-io 0.1.0-rc.21 → 0.1.0-rc.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types/index.d.ts +6 -0
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ export interface EvolutionIo {
|
|
|
12
12
|
exists(path: string): Promise<boolean>;
|
|
13
13
|
rename(path: string, destination: string): Promise<void>;
|
|
14
14
|
copy(path: string, destination: string): Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Optional byte-size probe for the read guard. Return the file's size in
|
|
17
|
+
* bytes, or `null` when unknown (unsupported backend, missing file, stat
|
|
18
|
+
* failure). An implementation without this probe gets no read guard.
|
|
19
|
+
*/
|
|
20
|
+
size?(path: string, signal?: AbortSignal): Promise<number | null>;
|
|
15
21
|
}
|
|
16
22
|
declare module '@deepseek-ai/cordis' {
|
|
17
23
|
interface Context {
|