mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
260 B
TypeScript
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});
|