Skip to content

Commit 94cf206

Browse files
committed
feat: add jsb.to_array_buffer utility function
1 parent f357511 commit 94cf206

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

typescripts/typings/godot.minimal.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
declare namespace jsb {
3-
import { Callable as GDCallable, Object as GDObject, PropertyUsageFlags, PropertyHint, MethodFlags, Variant } from "godot";
3+
import { Callable as GDCallable, Object as GDObject, PackedByteArray, PropertyUsageFlags, PropertyHint, MethodFlags, Variant } from "godot";
44

55
const DEV_ENABLED: boolean;
66
const TOOLS_ENABLED: boolean;
@@ -20,6 +20,8 @@ declare namespace jsb {
2020
*/
2121
function is_instance_valid(self: GDObject): boolean;
2222

23+
function to_array_buffer(packed: PackedByteArray): ArrayBuffer;
24+
2325
interface ScriptPropertyInfo {
2426
name: string;
2527
type: Variant.Type;

0 commit comments

Comments
 (0)