@aptre/protobuf-es-lite 0.2.13 → 0.2.14
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/message.d.ts +5 -5
- package/package.json +1 -1
package/dist/message.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface MessageType<T extends Message<T> = AnyMessage> {
|
|
|
45
45
|
/**
|
|
46
46
|
* Create a deep copy.
|
|
47
47
|
*/
|
|
48
|
-
clone(a:
|
|
48
|
+
clone(a: T | undefined | null): T | undefined | null;
|
|
49
49
|
/**
|
|
50
50
|
* Parse from binary data, merging fields.
|
|
51
51
|
*
|
|
@@ -55,20 +55,20 @@ export interface MessageType<T extends Message<T> = AnyMessage> {
|
|
|
55
55
|
* If a message field is already present, it will be merged with the
|
|
56
56
|
* new data.
|
|
57
57
|
*/
|
|
58
|
-
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>):
|
|
58
|
+
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): T;
|
|
59
59
|
/**
|
|
60
60
|
* Parse a message from a JSON value.
|
|
61
61
|
*/
|
|
62
|
-
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>):
|
|
62
|
+
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): T;
|
|
63
63
|
/**
|
|
64
64
|
* Parse a message from a JSON string.
|
|
65
65
|
*/
|
|
66
|
-
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>):
|
|
66
|
+
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): T;
|
|
67
67
|
/**
|
|
68
68
|
* Returns true if the given arguments have equal field values, recursively.
|
|
69
69
|
* Will also return true if both messages are `undefined` or `null`.
|
|
70
70
|
*/
|
|
71
|
-
equals(a:
|
|
71
|
+
equals(a: T | undefined | null, b: T | undefined | null): boolean;
|
|
72
72
|
/**
|
|
73
73
|
* Serialize the message to binary data.
|
|
74
74
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptre/protobuf-es-lite",
|
|
3
3
|
"description": "Lightweight Protobuf codegen for TypeScript and JavaScript.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "git+ssh://git@github.com/aperturerobotics/protobuf-es-lite.git"
|