feat(Int)

This commit is contained in:
2025-08-05 10:09:53 +03:00
parent 8c2d7118c2
commit f5b485d546
5 changed files with 123 additions and 2 deletions

3
types/Int.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
import { Type } from ".";
export function Int(bits: 8 | 16 | 32, sign: 'signed' | 'unsigned'): Type;

3
types/index.d.ts vendored
View File

@ -1,12 +1,13 @@
import { memcpy } from "./mem";
import { limits } from "./limits";
import { Type } from "./Type"
import { Int } from "./Int"
import { ConstString } from "./ConstString"
import { ConstArray } from "./ConstArray";
import { ConstDataView } from "./ConstDataView";
import { Struct } from "./Struct";
export { memcpy, limits, Type, ConstString, ConstArray, ConstDataView, Struct }
export { memcpy, limits, Type, Int, ConstString, ConstArray, ConstDataView, Struct }
export type SerializableType = NumberConstructor | StringConstructor | ArrayConstructor | DataViewConstructor | Type
export type Serializable = unknown