ysz-test-sdk
Version:
* 1 npm install --save-dev jest ts-jest @types/jest * 2 Modify your project's package.json ``` "jest": { "transform": { "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions
14 lines (13 loc) • 412 B
TypeScript
/// <reference path="../../src/websdk/global.d.ts" />
import { WebSDKSetting } from './index.impl';
declare class WebSDK {
key: any;
config: WebSDKSetting;
keysConfig(setting: WebSDKSetting): void;
constructor();
use(key: string, ...args: any[]): any;
versionError(error: any): any;
catchError(error: any): any;
}
declare const instance: WebSDK;
export default instance;