This commit is contained in:
2025-08-06 16:22:19 +03:00
parent 16789a942e
commit 40dc6a2637
20 changed files with 250 additions and 183 deletions

12
types/Struct.d.ts vendored
View File

@ -1,7 +1,9 @@
import { SerializableType, Type } from "."
import { SerializableType, Type } from '.'
/**
* constructs type of c-like structure. if field is headless, inside of structure will be stored u32 offset, outside of structure will be stored value of field
* @returns {Type}
*/
export function Struct(type_obj: Record<string, SerializableType | SerializableType[]>): Type;
* constructs type of c-like structure. if field is headless, inside of structure will be stored u32 offset, outside of structure will be stored value of field
* @returns {Type}
*/
export function Struct(
type_obj: Record<string, SerializableType | SerializableType[]>,
): Type