@nxtedition/types 1.6.0 → 1.6.2

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.
@@ -7,15 +7,19 @@ export interface File {
7
7
  deleted: boolean;
8
8
  refs: Array<{
9
9
  file?: string;
10
+ offset?: number;
11
+ start?: number;
12
+ end?: number;
10
13
  }>;
11
14
  tags: string[];
12
- error: Array<{
13
- message: string;
14
- }> | null;
15
15
  resumable: string;
16
16
  mimeType: string;
17
17
  hash: string & tags.Pattern<"^([A-Fa-f0-9]{32})?$">;
18
18
  btime: number & tags.Minimum<0> & tags.Type<"uint64">;
19
+ completed: boolean;
20
+ error: Array<{
21
+ message: string;
22
+ }> | null;
19
23
  }
20
24
  export declare const isFile: (input: unknown) => input is File;
21
25
  export declare const assertFile: (input: unknown) => File;
@@ -24,9 +28,8 @@ export declare const assertGuardFile: __AssertionGuard<File>;
24
28
  export declare const stringifyFile: (input: File) => string;
25
29
  export declare const assertStringifyFile: (input: unknown) => string;
26
30
  export interface FileStats extends File {
27
- position: number & tags.Minimum<0> & tags.Type<"uint64">;
31
+ position: (number & tags.Minimum<0> & tags.Type<"uint64">) | null;
28
32
  uploading: boolean;
29
- completed: boolean;
30
33
  zones: string[];
31
34
  replicas: string[];
32
35
  }