@@ -393,6 +393,8 @@ declare namespace Deno {
393393 | "usize"
394394 | "isize" ;
395395
396+ type NativeBooleanType = "bool" ;
397+
396398 type NativePointerType = "pointer" ;
397399
398400 type NativeBufferType = "buffer" ;
@@ -408,6 +410,7 @@ declare namespace Deno {
408410 export type NativeType =
409411 | NativeNumberType
410412 | NativeBigIntType
413+ | NativeBooleanType
411414 | NativePointerType
412415 | NativeBufferType
413416 | NativeFunctionType ;
@@ -419,6 +422,7 @@ declare namespace Deno {
419422 type ToNativeTypeMap =
420423 & Record < NativeNumberType , number >
421424 & Record < NativeBigIntType , PointerValue >
425+ & Record < NativeBooleanType , boolean >
422426 & Record < NativePointerType , PointerValue | null >
423427 & Record < NativeFunctionType , PointerValue | null >
424428 & Record < NativeBufferType , TypedArray | null > ;
@@ -455,6 +459,7 @@ declare namespace Deno {
455459 type FromNativeTypeMap =
456460 & Record < NativeNumberType , number >
457461 & Record < NativeBigIntType , PointerValue >
462+ & Record < NativeBooleanType , boolean >
458463 & Record < NativePointerType , PointerValue >
459464 & Record < NativeBufferType , PointerValue >
460465 & Record < NativeFunctionType , PointerValue > ;
@@ -610,6 +615,8 @@ declare namespace Deno {
610615
611616 pointer : bigint ;
612617
618+ /** Gets a boolean at the specified byte offset from the pointer. */
619+ getBool ( offset ?: number ) : boolean ;
613620 /** Gets an unsigned 8-bit integer at the specified byte offset from the pointer. */
614621 getUint8 ( offset ?: number ) : number ;
615622 /** Gets a signed 8-bit integer at the specified byte offset from the pointer. */
0 commit comments