feat(Sequence)
This commit is contained in:
7
types/Sequence.d.ts
vendored
Normal file
7
types/Sequence.d.ts
vendored
Normal 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
2
types/index.d.ts
vendored
@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user