sardines-utils
Version:
Test cases for sardines.js
40 lines • 1.73 kB
TypeScript
export * from './http_interfaces';
export * from './sardines_interfaces';
export declare const debugLog: (msg: string, ...param: any[]) => void;
export declare const mergeObjects: (target: any, source: any) => any;
export declare const isEqual: (A: any, B: any, isReverse?: boolean) => boolean;
interface ChainedFunction {
(fnParam: any, next: ChainedFunction | undefined): any;
}
export declare const chainFunctions: (functionArray: ChainedFunction[], fnParam: any) => ((next?: ChainedFunction | undefined) => Promise<void>) | null;
interface FactoryInstance {
settings: object;
CustomClass: any;
instance: object;
}
export declare class Factory {
static classes: Map<string, Map<string, any>>;
static instances: Map<string, Array<FactoryInstance>>;
static setClass(name: string, Class: any, type?: string): void;
static getClass(name: string, type?: string): any;
static getInstance(CustomClass: any, settings: object, type?: string): any;
static execMethodOnInstances(type: string | null | undefined, method: string, ...parameters: []): Promise<void>;
}
export declare const inspect: (obj: any) => string;
export declare const colorfulInspect: (obj: any) => string;
export declare const inspectedLog: (obj: any) => void;
export declare const inspectedDebugLog: (errMsg: string, obj: any) => void;
export declare const logo = "sardines";
export declare const parseArgs: () => {
params: {
[key: string]: any;
};
files: string[];
};
import * as RepositoryClient from './repo_client';
export { RepositoryClient };
import { Sardines } from './sardines_interfaces';
export { Sardines };
export * from './unify';
export * from './sourcing';
//# sourceMappingURL=index.d.ts.map