feat(Sequence)

This commit is contained in:
2025-08-08 11:28:49 +03:00
parent ebe15d2d05
commit c5c0c17db2
6 changed files with 153 additions and 1 deletions

7
types/Sequence.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
import { SerializableType, Type } from '.'
/**
* constructs type of heterogeneous array of arbitrary types. Even if item type is headless, it will be stored directly in the of sequence
* @returns {Type}
*/
export function Sequence(types: (SerializableType | SerializableType[])[]): Type

2
types/index.d.ts vendored
View File

@ -5,6 +5,7 @@ import { Int } from './Int'
import { ConstString } from './ConstString'
import { ConstArray } from './ConstArray'
import { ConstDataView } from './ConstDataView'
import { Sequence } from './Sequence'
import { Struct } from './Struct'
export {
@ -15,6 +16,7 @@ export {
ConstString,
ConstArray,
ConstDataView,
Sequence,
Struct,
}