diff --git a/index.d.ts b/index.d.ts index 29d0681..11bf0ed 100644 --- a/index.d.ts +++ b/index.d.ts @@ -56,13 +56,13 @@ export default class JPush { /** * 初始化推送服务 - * {"appKey":"","channel":"dev","production":1} + * {"appKey":"","channel":"dev","production":false} * 请在componentDidMount()调用init,否则会影响通知点击事件的回调 * */ static init(params: { appKey: string; - titchannelle: string; + channel: string; production: boolean; }): void; diff --git a/index.js b/index.js index 92bef1a..7b793e9 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ export default class JPush { /* * 初始化推送服务 - * {"appKey":"","channel":"dev","production":1} + * {"appKey":"","channel":"dev","production":false} * 请在componentDidMount()调用init,否则会影响通知点击事件的回调 * */ static init(params) {