DefinitelyTyped/types/ref-struct-di/ref-struct-di-tests.ts
2018-08-16 11:29:23 +05:30

13 lines
260 B
TypeScript

import ref = require("ref-napi");
import StructType = require("ref-struct-di");
const normalStruct = StructType({
t: ref.types.uint8,
v: ref.types.long,
});
const packedStruct = StructType({
t: ref.types.uint8,
v: ref.types.long,
}, {packed: true});