This repository has been archived on 2023-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
libsiaweb/dist/types.d.ts

20 lines
542 B
TypeScript

type DataFn = (data?: any) => void;
type Err = string | null;
type ErrFn = (errMsg: string) => void;
type ErrTuple = [data: any, err: Err];
interface KernelAuthStatus {
loginComplete: boolean;
kernelLoaded: "not yet" | "success" | string;
logoutComplete: boolean;
}
interface SkynetPortal {
url: string;
name: string;
}
interface RequestOverrideResponse {
override: boolean;
headers?: any;
body?: Uint8Array;
}
export { DataFn, ErrFn, Err, ErrTuple, KernelAuthStatus, RequestOverrideResponse, SkynetPortal, };