@alepha/protobuf 0.13.3 → 0.13.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.
- package/dist/index.d.ts +33 -31
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -102,6 +102,37 @@ interface LoggerInterface {
|
|
|
102
102
|
error(message: string, data?: unknown): void;
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
+
//#region ../alepha/src/core/providers/TypeProvider.d.ts
|
|
106
|
+
declare module "typebox" {
|
|
107
|
+
interface TString {
|
|
108
|
+
format?: string;
|
|
109
|
+
minLength?: number;
|
|
110
|
+
maxLength?: number;
|
|
111
|
+
}
|
|
112
|
+
interface TNumber {
|
|
113
|
+
format?: "int64";
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region ../alepha/src/core/primitives/$atom.d.ts
|
|
118
|
+
type AtomOptions<T extends TAtomObject, N extends string> = {
|
|
119
|
+
name: N;
|
|
120
|
+
schema: T;
|
|
121
|
+
description?: string;
|
|
122
|
+
} & (T extends TOptionalAdd<T> ? {
|
|
123
|
+
default?: Static$1<T>;
|
|
124
|
+
} : {
|
|
125
|
+
default: Static$1<T>;
|
|
126
|
+
});
|
|
127
|
+
declare class Atom<T extends TAtomObject = TObject$1, N extends string = string> {
|
|
128
|
+
readonly options: AtomOptions<T, N>;
|
|
129
|
+
get schema(): T;
|
|
130
|
+
get key(): N;
|
|
131
|
+
constructor(options: AtomOptions<T, N>);
|
|
132
|
+
}
|
|
133
|
+
type TAtomObject = TObject$1<any> | TArray;
|
|
134
|
+
type AtomStatic<T extends TAtomObject> = T extends TOptionalAdd<T> ? Static$1<T> | undefined : Static$1<T>;
|
|
135
|
+
//#endregion
|
|
105
136
|
//#region ../alepha/src/core/primitives/$inject.d.ts
|
|
106
137
|
interface InjectOptions<T extends object = any> {
|
|
107
138
|
/**
|
|
@@ -198,18 +229,6 @@ declare class Json {
|
|
|
198
229
|
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
|
|
199
230
|
}
|
|
200
231
|
//#endregion
|
|
201
|
-
//#region ../alepha/src/core/providers/TypeProvider.d.ts
|
|
202
|
-
declare module "typebox" {
|
|
203
|
-
interface TString {
|
|
204
|
-
format?: string;
|
|
205
|
-
minLength?: number;
|
|
206
|
-
maxLength?: number;
|
|
207
|
-
}
|
|
208
|
-
interface TNumber {
|
|
209
|
-
format?: "int64";
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
//#endregion
|
|
213
232
|
//#region ../alepha/src/core/providers/SchemaCodec.d.ts
|
|
214
233
|
declare abstract class SchemaCodec {
|
|
215
234
|
/**
|
|
@@ -379,25 +398,6 @@ declare class EventManager {
|
|
|
379
398
|
}): Promise<void>;
|
|
380
399
|
}
|
|
381
400
|
//#endregion
|
|
382
|
-
//#region ../alepha/src/core/primitives/$atom.d.ts
|
|
383
|
-
type AtomOptions<T extends TAtomObject, N extends string> = {
|
|
384
|
-
name: N;
|
|
385
|
-
schema: T;
|
|
386
|
-
description?: string;
|
|
387
|
-
} & (T extends TOptionalAdd<T> ? {
|
|
388
|
-
default?: Static$1<T>;
|
|
389
|
-
} : {
|
|
390
|
-
default: Static$1<T>;
|
|
391
|
-
});
|
|
392
|
-
declare class Atom<T extends TAtomObject = TObject$1, N extends string = string> {
|
|
393
|
-
readonly options: AtomOptions<T, N>;
|
|
394
|
-
get schema(): T;
|
|
395
|
-
get key(): N;
|
|
396
|
-
constructor(options: AtomOptions<T, N>);
|
|
397
|
-
}
|
|
398
|
-
type TAtomObject = TObject$1<any> | TArray;
|
|
399
|
-
type AtomStatic<T extends TAtomObject> = T extends TOptionalAdd<T> ? Static$1<T> | undefined : Static$1<T>;
|
|
400
|
-
//#endregion
|
|
401
401
|
//#region ../alepha/src/core/providers/StateManager.d.ts
|
|
402
402
|
interface AtomWithValue {
|
|
403
403
|
atom: Atom;
|
|
@@ -674,6 +674,8 @@ declare class Alepha {
|
|
|
674
674
|
*/
|
|
675
675
|
get env(): Readonly<Env>;
|
|
676
676
|
constructor(init?: Partial<State>);
|
|
677
|
+
set<T extends TAtomObject>(target: Atom<T>, value: AtomStatic<T>): this;
|
|
678
|
+
set<Key extends keyof State>(target: Key, value: State[Key] | undefined): this;
|
|
677
679
|
/**
|
|
678
680
|
* True when start() is called.
|
|
679
681
|
*
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@alepha/protobuf",
|
|
3
3
|
"description": "Protocol Buffers (Protobuf) codec support for Alepha framework.",
|
|
4
4
|
"author": "Nicolas Foures",
|
|
5
|
-
"version": "0.13.
|
|
5
|
+
"version": "0.13.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22.0.0"
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
"protobufjs": "^7.5.4"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"alepha": "0.13.
|
|
21
|
+
"alepha": "0.13.4",
|
|
22
22
|
"tsdown": "^0.16.8",
|
|
23
23
|
"typescript": "^5.9.3",
|
|
24
24
|
"vitest": "^4.0.15"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"alepha": "0.13.
|
|
27
|
+
"alepha": "0.13.4"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"lint": "alepha lint",
|