From e06dcae78fc9175394429acfd5a2ca57a3db03e2 Mon Sep 17 00:00:00 2001 From: Nbiba Bedis Date: Sun, 7 Apr 2024 07:12:31 +0100 Subject: [PATCH] fix slow types --- src/ffi.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ffi.ts b/src/ffi.ts index c332794..caf09fa 100644 --- a/src/ffi.ts +++ b/src/ffi.ts @@ -265,32 +265,32 @@ export const CAPPROPID_LAST = 14; /** * Represents the data type for a device ID. */ -export const CapDeviceID = "u32"; +export const CapDeviceID = "u32" as const; /** * Represents the data type for a format ID. */ -export const CapFormatId = "u32"; +export const CapFormatId = "u32" as const; /** * Represents the data type for a result of a capability operation. */ -export const CapResult = "u32"; +export const CapResult = "u32" as const; /** * Represents the data type for a stream. */ -export const CapStream = "i32"; +export const CapStream = "i32" as const; /** * Represents the data type for a context. */ -export const CapContext = "pointer"; +export const CapContext = "pointer" as const; /** * Represents the property IDs for camera capabilities. */ -export const CapPropertyID = "u32"; +export const CapPropertyID = "u32" as const; /** * Represents the result code indicating successful operation. @@ -388,7 +388,7 @@ const SYMBOLS = { parameters: [CapContext, CapStream], result: "u32", }, -} satisfies Deno.ForeignLibraryInterface; +} as const; /** * Represents the dynamic library instance.