WIP: Uber plugin

This commit is contained in:
Hendrik Eeckhaut
2024-08-22 11:05:06 +02:00
parent d5392c483c
commit 0a2be529a3
2 changed files with 123 additions and 0 deletions

14
examples/uber/index.d.ts vendored Normal file
View File

@@ -0,0 +1,14 @@
declare module 'main' {
// Extism exports take no params and return an I32
export function start(): I32;
export function two(): I32;
export function three(): I32;
export function config(): I32;
}
declare module 'extism:host' {
interface user {
redirect(ptr: I64): void;
notarize(ptr: I64): I64;
}
}

109
examples/uber/index.js Normal file

File diff suppressed because one or more lines are too long