Comparing version 13.0.0 to 13.1.0
@@ -0,5 +1,11 @@ | ||
import ref from 'ref-napi'; | ||
import StructDi from 'ref-struct-di'; | ||
import { StructDefType } from './ffi.types.js'; | ||
export declare function UnionType<T>(input: StructDefType): T; | ||
export declare function UnionFactor<T>(input: StructDefType): T; | ||
export declare function StructType<T>(input: StructDefType): T; | ||
export declare function StructType(input: StructDefType): StructDi.StructType<{ | ||
[x: string]: ref.Type<any>; | ||
} | { | ||
[x: string]: ref.Type<void>; | ||
}>; | ||
export declare function StructFactory<T>(input: StructDefType): T; |
{ | ||
"name": "win32-def", | ||
"author": "waiting", | ||
"version": "13.0.0", | ||
"version": "13.1.0", | ||
"description": "win32 definitions for node-ffi", | ||
@@ -94,3 +94,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "b0832e505bbc66fbeec3e81a4ae98c324d396215" | ||
"gitHead": "9fbcafd04cdbed977548f77761a98af03d20fd8e" | ||
} |
@@ -21,5 +21,5 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
const Struct = StructDi(ref) | ||
export function StructType<T>(input: StructDefType): T { | ||
export function StructType(input: StructDefType) { | ||
// @ts-expect-error | ||
return Struct(input) as unknown as T | ||
return Struct(input) | ||
} | ||
@@ -26,0 +26,0 @@ export function StructFactory<T>(input: StructDefType): T { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
272172
5806
0