diff --git a/package/src/runtime/imports.d.ts b/package/src/runtime/imports.d.ts index aff4b1d1e..746353817 100644 --- a/package/src/runtime/imports.d.ts +++ b/package/src/runtime/imports.d.ts @@ -1,10 +1,10 @@ declare module "extism:host" { interface user { - from_virtual_path(path: I64): I64; - to_virtual_path(path: I64): I64; - host_log(input: I64): void; - exec_command(input: I64): I64; - get_env_var(name: I64): I64; - set_env_var(name: I64, value: I64): void; + from_virtual_path(path: PTR): PTR; + to_virtual_path(path: PTR): PTR; + host_log(input: PTR): void; + exec_command(input: PTR): PTR; + get_env_var(name: PTR): PTR; + set_env_var(name: PTR, value: PTR): void; } } diff --git a/package/test/src/index.d.ts b/package/test/src/index.d.ts index 2587d5e1e..1e62ba9bb 100644 --- a/package/test/src/index.d.ts +++ b/package/test/src/index.d.ts @@ -9,14 +9,14 @@ declare module "main" { export function verify_checksum(): I32; } -// These imports unfortunately has to be copied, as extism-js only parses this file. +// These imports unfortunately have to be copied, as extism-js only parses this file. declare module "extism:host" { interface user { - from_virtual_path(path: I64): I64; - to_virtual_path(path: I64): I64; - host_log(input: I64): void; - exec_command(input: I64): I64; - get_env_var(name: I64): I64; - set_env_var(name: I64, value: I64): void; + from_virtual_path(path: PTR): PTR; + to_virtual_path(path: PTR): PTR; + host_log(input: PTR): void; + exec_command(input: PTR): PTR; + get_env_var(name: PTR): PTR; + set_env_var(name: PTR, value: PTR): void; } }