@akala/core
Version:
21 lines (20 loc) • 1 kB
TypeScript
import { Module } from './module';
import * as jsonrpc from '@akala/json-rpc-ws';
export { Module };
export * from './promiseHelpers';
export { each as eachAsync, NextFunction } from './eachAsync';
export { each, grep } from './each';
export * from './router';
import log from 'debug';
export declare function noop(): void;
export declare function extend<T, U>(target: T, other: U): T & U;
export declare function extend<T, U, V>(target: T, other1: U, other2: V): T & U & V;
export declare function extend<T, U, V, W>(target: T, other1: U, other2: V, other3: W): T & U & V & W;
export declare function extend<T, U, V, W, X>(target: T, other1: U, other2: V, other3: W, other43: X): T & U & V & W & X;
export { log };
export declare function module(name: string, ...dependencies: string[]): Module;
export interface Translator {
(key: string): string;
(format: string, ...parameters: any[]): string;
}
export declare function createSocket(namespace: string): Promise<jsonrpc.SocketAdapter<any>>;