You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
521 B
20 lines
521 B
/**
|
|
* @file 小程序当前运行版本类型
|
|
*/
|
|
declare namespace my {
|
|
interface IGetRunSceneSuccessResult {
|
|
/**
|
|
* 小程序当前运行的版本,枚举类型:develop(开发版)、trial(体验版)、release(发布版)
|
|
*/
|
|
readonly envVersion: 'develop' | 'trial' | 'release';
|
|
}
|
|
|
|
interface IGetRunSceneOptions {
|
|
success(res: IGetRunSceneSuccessResult): void;
|
|
}
|
|
|
|
/**
|
|
* 获取当前小程序的运行版本
|
|
*/
|
|
function getRunScene(res: IGetRunSceneOptions): void;
|
|
}
|
|
|