UNPKG

@thi.ng/wasm-api-bindgen

Version:

Polyglot bindings code generators (TS/JS, Zig, C11) for hybrid WebAssembly projects

16 lines 818 B
import type { Field, TypeColl } from "../api.js"; export type FieldClass = "pad" | "single" | "array" | "vec" | "slice" | "ptr" | "ptrFixed" | "ptrMulti" | "str" | "strArray" | "strSlice" | "strPtr" | "strPtrFixed" | "strPtrMulti" | "opaque" | "opaqueArray" | "opaqueSlice" | "opaquePtr" | "opaquePtrFixed" | "opaquePtrMulti" | "enum" | "enumArray" | "enumSlice" | "enumPtr" | "enumPtrFixed" | "enumPtrMulti"; /** * Analyses and classifies given field and returns a classifier constant used by * each codegen to emit the relevant syntax. * * @param field * @param coll * * @internal */ export declare const classifyField: (field: Pick<Field, "type" | "tag" | "len" | "const" | "sentinel" | "pad">, coll: TypeColl) => { classifier: FieldClass; isConst: boolean; }; //# sourceMappingURL=classify.d.ts.map