Files
serialize-js/types/Struct.d.ts
2025-08-06 16:22:19 +03:00

10 lines
330 B
TypeScript

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