node-seal
Version:
Homomorphic Encryption for TypeScript or JavaScript using Microsoft SEAL
13 lines (12 loc) • 402 B
TypeScript
import { LoaderOptions } from './seal';
export interface ExceptionDependencies {
(): ExceptionConstructorOptions;
}
export interface ExceptionConstructorOptions {
(): Exception;
}
export type SealError = number | Error | string;
export interface Exception {
readonly safe: (e: SealError) => Error;
}
export declare const ExceptionInit: ({ loader }: LoaderOptions) => ExceptionDependencies;