|
|
@@ -492,7 +492,7 @@ export default new (class {
|
|
|
/**
|
|
|
* 请求摄像头权限
|
|
|
*/
|
|
|
- requestPermissionCamera(options: Partial<{ onSuccess: () => void; onError: (message?: string) => void; }> = {}) {
|
|
|
+ requestPermissionCamera(options: Partial<{ onSuccess: () => void; onError: (message: string) => void; }> = {}) {
|
|
|
const { onSuccess, onError } = options
|
|
|
if (this.hasPlus()) {
|
|
|
this.onPlusReady((plus) => {
|
|
|
@@ -518,7 +518,7 @@ export default new (class {
|
|
|
/**
|
|
|
* 请求麦克风权限
|
|
|
*/
|
|
|
- requestPermissionRecordAudio(options: Partial<{ onSuccess: () => void; onError: (message?: string) => void; }> = {}) {
|
|
|
+ requestPermissionRecordAudio(options: Partial<{ onSuccess: () => void; onError: (message: string) => void; }> = {}) {
|
|
|
const { onSuccess, onError } = options
|
|
|
if (this.hasPlus()) {
|
|
|
this.onPlusReady((plus) => {
|