feat(serialize, parse): Number, String, Array, ConstString, ConstArray
This commit is contained in:
15
types/type.d.ts
vendored
Normal file
15
types/type.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export type Type = unknown
|
||||
|
||||
/**
|
||||
* constructs type of utf8-string with constant byte size
|
||||
* @param {number} byte_size max utf8-encoded byte size
|
||||
* @returns {Type}
|
||||
*/
|
||||
export function ConstString(byte_size: number): Type;
|
||||
|
||||
/**
|
||||
* constructs type of array with constant byte size
|
||||
* @param {number} size number of items
|
||||
* @returns {Type}
|
||||
*/
|
||||
export function ConstArray(size: number): Type;
|
||||
Reference in New Issue
Block a user