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