DefinitelyTyped/types/light-sdk/light-sdk-tests.ts
文博 454130cec8 Add typings for light-sdk (#39420)
* init commit

* 完善代码

* 完善接口定义

* 优化接口定义

* 完善接口定义

* fix npm run test

* update limit rules

* delete limit rules and update the index.d.ts file

* export interface
2019-10-29 10:56:31 -07:00

20 lines
309 B
TypeScript

import LightSDK = require('light-sdk');
interface Options {
cid: string;
iid: string;
}
LightSDK.register((options: Options) => {
// ...
const cidNew = options.cid;
const iidNew = options.iid;
});
LightSDK.config.get(() => {
// ...
});
LightSDK.openAPI.token(() => {
// ...
});