mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-25 02:02:52 +00:00
* init commit * 完善代码 * 完善接口定义 * 优化接口定义 * 完善接口定义 * fix npm run test * update limit rules * delete limit rules and update the index.d.ts file * export interface
20 lines
309 B
TypeScript
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(() => {
|
|
// ...
|
|
});
|