@nxtedition/types 1.6.2 → 1.6.4

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.
@@ -1,5 +1,6 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
1
+ import __typia, { type AssertionGuard as __AssertionGuard } from "typia";
2
2
  import { tags } from 'typia';
3
+ import { NxtError } from './error.js';
3
4
  export interface Block {
4
5
  id: string & tags.Pattern<"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$">;
5
6
  file: string & tags.Pattern<"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$">;
@@ -9,20 +10,18 @@ export interface Block {
9
10
  hash: (string & tags.Pattern<"^([A-Fa-f0-9]{32})?$">) | null;
10
11
  btime: (number & tags.Minimum<0> & tags.Type<"uint64">) | null;
11
12
  path: string | null;
12
- error: Array<{
13
- message: string;
14
- }> | null;
13
+ error: NxtError[] | NxtError | null;
15
14
  }
16
15
  export declare const isBlock: (input: unknown) => input is Block;
17
16
  export declare const assertBlock: (input: unknown) => Block;
18
- export declare const randomBlock: () => Block;
17
+ export declare const randomBlock: () => __typia.Resolved<Block>;
19
18
  export declare const assertGuardBlock: __AssertionGuard<Block>;
20
19
  export declare const stringifyBlock: (input: Block) => string;
21
20
  export declare const assertStringifyBlock: (input: unknown) => string;
22
21
  export type Blocks = Block[];
23
22
  export declare const isBlocks: (input: unknown) => input is Blocks;
24
23
  export declare const assertBlocks: (input: unknown) => Blocks;
25
- export declare const randomBlocks: () => Blocks;
24
+ export declare const randomBlocks: () => __typia.Resolved<Blocks>;
26
25
  export declare const assertGuardBlocks: __AssertionGuard<Blocks>;
27
26
  export declare const stringifyBlocks: (input: Blocks) => string;
28
27
  export declare const assertStringifyBlocks: (input: unknown) => string;