Something went wrong. Try again.
MIRROR: javascript for 🐜's, a tiny runtime with big ambitions ant.themackabu.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031declare module 'ant:shell' { interface ShellOutput { stdout: Uint8Array & BufferMethods; stderr: Uint8Array & BufferMethods; exitCode: number; signalCode: string | null; text(): string; json<T = unknown>(): T; arrayBuffer(): ArrayBuffer; bytes(): Uint8Array; blob(): Blob; lines(): string[]; }
interface ShellPromise extends PromiseLike<ShellOutput> { catch<TResult = never>( onRejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null ): Promise<ShellOutput | TResult>; finally(onFinally?: (() => void) | null): Promise<ShellOutput>; nothrow(): ShellPromise; text(): Promise<string>; json<T = unknown>(): Promise<T>; arrayBuffer(): Promise<ArrayBuffer>; bytes(): Promise<Uint8Array>; blob(): Promise<Blob>; lines(): Promise<string[]>; }
function $(strings: TemplateStringsArray, ...values: unknown[]): ShellPromise;}