Skip to content

Commit

Permalink
fix: ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
DjDeveloperr committed Mar 20, 2023
1 parent 27d190b commit 824a25f
Show file tree
Hide file tree
Showing 217 changed files with 16,877 additions and 16,877 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Fast and complete Win32 API bindings for Deno using FFI.
import {
MB_OKCANCEL,
MessageBoxA,
} from "https://win32.deno.dev/0.4.0/UI.WindowsAndMessaging";
} from "https://win32.deno.dev/0.4.1/UI.WindowsAndMessaging";

const result = MessageBoxA(
null,
Expand Down
54 changes: 27 additions & 27 deletions api/AI/MachineLearning/DirectML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export interface DML_BUFFER_TENSOR_DESC {
/** ptr */
Strides: Deno.PointerValue | Uint8Array;
/** u64 */
TotalTensorSizeInBytes: Deno.PointerValue;
TotalTensorSizeInBytes: bigint | number;
/** u32 */
GuaranteedBaseOffsetAlignment: number;
}
Expand Down Expand Up @@ -349,7 +349,7 @@ export class DML_BUFFER_TENSOR_DESCView {
}

// 0x20: u64
get TotalTensorSizeInBytes(): Deno.PointerValue {
get TotalTensorSizeInBytes(): bigint | number {
return Number(this.view.getBigUint64(32, true));
}

Expand Down Expand Up @@ -388,7 +388,7 @@ export class DML_BUFFER_TENSOR_DESCView {
}

// 0x20: u64
set TotalTensorSizeInBytes(value: Deno.PointerValue) {
set TotalTensorSizeInBytes(value: bigint | number) {
this.view.setBigUint64(32, BigInt(value), true);
}

Expand Down Expand Up @@ -584,9 +584,9 @@ export interface DML_SCALAR_UNION {
/** u32 */
UInt32: number;
/** i64 */
Int64: Deno.PointerValue;
Int64: bigint | number;
/** u64 */
UInt64: Deno.PointerValue;
UInt64: bigint | number;
/** f32 */
Float32: number;
/** f64 */
Expand Down Expand Up @@ -674,12 +674,12 @@ export class DML_SCALAR_UNIONView {
// 0x16: pad2

// 0x18: i64
get Int64(): Deno.PointerValue {
get Int64(): bigint | number {
return Number(this.view.getBigInt64(24, true));
}

// 0x20: u64
get UInt64(): Deno.PointerValue {
get UInt64(): bigint | number {
return Number(this.view.getBigUint64(32, true));
}

Expand Down Expand Up @@ -733,12 +733,12 @@ export class DML_SCALAR_UNIONView {
// 0x16: pad2

// 0x18: i64
set Int64(value: Deno.PointerValue) {
set Int64(value: bigint | number) {
this.view.setBigInt64(24, BigInt(value), true);
}

// 0x20: u64
set UInt64(value: Deno.PointerValue) {
set UInt64(value: bigint | number) {
this.view.setBigUint64(32, BigInt(value), true);
}

Expand Down Expand Up @@ -15360,7 +15360,7 @@ export class DML_FEATURE_DATA_FEATURE_LEVELSView {
*/
export interface D3D12_CPU_DESCRIPTOR_HANDLE {
/** usize */
ptr: Deno.PointerValue;
ptr: bigint | number;
}

export const sizeofD3D12_CPU_DESCRIPTOR_HANDLE = 8;
Expand All @@ -15384,12 +15384,12 @@ export class D3D12_CPU_DESCRIPTOR_HANDLEView {
}

// 0x00: usize
get ptr(): Deno.PointerValue {
get ptr(): bigint | number {
return Number(this.view.getBigUint64(0, true));
}

// 0x00: usize
set ptr(value: Deno.PointerValue) {
set ptr(value: bigint | number) {
this.view.setBigUint64(0, BigInt(value), true);
}
}
Expand All @@ -15399,7 +15399,7 @@ export class D3D12_CPU_DESCRIPTOR_HANDLEView {
*/
export interface D3D12_GPU_DESCRIPTOR_HANDLE {
/** u64 */
ptr: Deno.PointerValue;
ptr: bigint | number;
}

export const sizeofD3D12_GPU_DESCRIPTOR_HANDLE = 8;
Expand All @@ -15423,12 +15423,12 @@ export class D3D12_GPU_DESCRIPTOR_HANDLEView {
}

// 0x00: u64
get ptr(): Deno.PointerValue {
get ptr(): bigint | number {
return Number(this.view.getBigUint64(0, true));
}

// 0x00: u64
set ptr(value: Deno.PointerValue) {
set ptr(value: bigint | number) {
this.view.setBigUint64(0, BigInt(value), true);
}
}
Expand Down Expand Up @@ -15529,9 +15529,9 @@ export interface DML_BINDING_PROPERTIES {
/** u32 */
RequiredDescriptorCount: number;
/** u64 */
TemporaryResourceSize: Deno.PointerValue;
TemporaryResourceSize: bigint | number;
/** u64 */
PersistentResourceSize: Deno.PointerValue;
PersistentResourceSize: bigint | number;
}

export const sizeofDML_BINDING_PROPERTIES = 24;
Expand Down Expand Up @@ -15567,12 +15567,12 @@ export class DML_BINDING_PROPERTIESView {
// 0x04: pad4

// 0x08: u64
get TemporaryResourceSize(): Deno.PointerValue {
get TemporaryResourceSize(): bigint | number {
return Number(this.view.getBigUint64(8, true));
}

// 0x10: u64
get PersistentResourceSize(): Deno.PointerValue {
get PersistentResourceSize(): bigint | number {
return Number(this.view.getBigUint64(16, true));
}

Expand All @@ -15584,12 +15584,12 @@ export class DML_BINDING_PROPERTIESView {
// 0x04: pad4

// 0x08: u64
set TemporaryResourceSize(value: Deno.PointerValue) {
set TemporaryResourceSize(value: bigint | number) {
this.view.setBigUint64(8, BigInt(value), true);
}

// 0x10: u64
set PersistentResourceSize(value: Deno.PointerValue) {
set PersistentResourceSize(value: bigint | number) {
this.view.setBigUint64(16, BigInt(value), true);
}
}
Expand Down Expand Up @@ -15660,9 +15660,9 @@ export interface DML_BUFFER_BINDING {
/** Windows.Win32.Graphics.Direct3D12.ID3D12Resource */
Buffer: Uint8Array | Deno.PointerValue;
/** u64 */
Offset: Deno.PointerValue;
Offset: bigint | number;
/** u64 */
SizeInBytes: Deno.PointerValue;
SizeInBytes: bigint | number;
}

export const sizeofDML_BUFFER_BINDING = 24;
Expand Down Expand Up @@ -15696,12 +15696,12 @@ export class DML_BUFFER_BINDINGView {
}

// 0x08: u64
get Offset(): Deno.PointerValue {
get Offset(): bigint | number {
return Number(this.view.getBigUint64(8, true));
}

// 0x10: u64
get SizeInBytes(): Deno.PointerValue {
get SizeInBytes(): bigint | number {
return Number(this.view.getBigUint64(16, true));
}

Expand All @@ -15711,12 +15711,12 @@ export class DML_BUFFER_BINDINGView {
}

// 0x08: u64
set Offset(value: Deno.PointerValue) {
set Offset(value: bigint | number) {
this.view.setBigUint64(8, BigInt(value), true);
}

// 0x10: u64
set SizeInBytes(value: Deno.PointerValue) {
set SizeInBytes(value: bigint | number) {
this.view.setBigUint64(16, BigInt(value), true);
}
}
Expand Down
36 changes: 18 additions & 18 deletions api/AI/MachineLearning/WinML.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ export class WINML_TENSOR_BINDING_DESCView {
*/
export interface _Anonymous_e__Struct {
/** u64 */
Alignment: Deno.PointerValue;
Alignment: bigint | number;
/** u64 */
Region: Deno.PointerValue;
Region: bigint | number;
}

export const sizeof_Anonymous_e__Struct = 16;
Expand All @@ -213,22 +213,22 @@ export class _Anonymous_e__StructView {
}

// 0x00: u64
get Alignment(): Deno.PointerValue {
get Alignment(): bigint | number {
return Number(this.view.getBigUint64(0, true));
}

// 0x08: u64
get Region(): Deno.PointerValue {
get Region(): bigint | number {
return Number(this.view.getBigUint64(8, true));
}

// 0x00: u64
set Alignment(value: Deno.PointerValue) {
set Alignment(value: bigint | number) {
this.view.setBigUint64(0, BigInt(value), true);
}

// 0x08: u64
set Region(value: Deno.PointerValue) {
set Region(value: bigint | number) {
this.view.setBigUint64(8, BigInt(value), true);
}
}
Expand Down Expand Up @@ -363,11 +363,11 @@ export type PWSTR = Deno.PointerValue | Uint8Array;
*/
export interface _Anonymous1_e__Union {
/** usize */
Data0: Deno.PointerValue;
Data0: bigint | number;
/** Windows.Win32.Foundation.PWSTR */
String: string | null | Uint8Array | Uint16Array;
/** usize */
u: Deno.PointerValue;
u: bigint | number;
/** ptr */
psid: Deno.PointerValue | Uint8Array;
/** ptr */
Expand Down Expand Up @@ -419,7 +419,7 @@ export class _Anonymous1_e__UnionView {
}

// 0x00: usize
get Data0(): Deno.PointerValue {
get Data0(): bigint | number {
return Number(this.view.getBigUint64(0, true));
}

Expand All @@ -430,7 +430,7 @@ export class _Anonymous1_e__UnionView {
}

// 0x10: usize
get u(): Deno.PointerValue {
get u(): bigint | number {
return Number(this.view.getBigUint64(16, true));
}

Expand Down Expand Up @@ -466,7 +466,7 @@ export class _Anonymous1_e__UnionView {
}

// 0x00: usize
set Data0(value: Deno.PointerValue) {
set Data0(value: bigint | number) {
this.view.setBigUint64(0, BigInt(value), true);
}

Expand All @@ -477,7 +477,7 @@ export class _Anonymous1_e__UnionView {
}

// 0x10: usize
set u(value: Deno.PointerValue) {
set u(value: bigint | number) {
this.view.setBigUint64(16, BigInt(value), true);
}

Expand Down Expand Up @@ -514,7 +514,7 @@ export class _Anonymous1_e__UnionView {
*/
export interface _Anonymous2_e__Union {
/** usize */
Data1: Deno.PointerValue;
Data1: bigint | number;
/** i32 */
LogonId_HighPart: number;
}
Expand Down Expand Up @@ -543,7 +543,7 @@ export class _Anonymous2_e__UnionView {
}

// 0x00: usize
get Data1(): Deno.PointerValue {
get Data1(): bigint | number {
return Number(this.view.getBigUint64(0, true));
}

Expand All @@ -555,7 +555,7 @@ export class _Anonymous2_e__UnionView {
// 0x0c: pad4

// 0x00: usize
set Data1(value: Deno.PointerValue) {
set Data1(value: bigint | number) {
this.view.setBigUint64(0, BigInt(value), true);
}

Expand Down Expand Up @@ -1286,7 +1286,7 @@ export interface WINML_MODEL_DESC {
/** Windows.Win32.Foundation.PWSTR */
Description: string | null | Uint8Array | Uint16Array;
/** usize */
Version: Deno.PointerValue;
Version: bigint | number;
}

export const sizeofWINML_MODEL_DESC = 40;
Expand Down Expand Up @@ -1354,7 +1354,7 @@ export class WINML_MODEL_DESCView {
}

// 0x20: usize
get Version(): Deno.PointerValue {
get Version(): bigint | number {
return Number(this.view.getBigUint64(32, true));
}

Expand Down Expand Up @@ -1383,7 +1383,7 @@ export class WINML_MODEL_DESCView {
}

// 0x20: usize
set Version(value: Deno.PointerValue) {
set Version(value: bigint | number) {
this.view.setBigUint64(32, BigInt(value), true);
}
}
Expand Down
Loading

0 comments on commit 824a25f

Please sign in to comment.