diff --git a/zh-cn/application-dev/reference/apis/js-apis-print.md b/zh-cn/application-dev/reference/apis/js-apis-print.md index 7677855f8bd9a694a3ade36d7c8198294050e63e..d62001460ee9af5ee9e143237dcd3f037d8a8d97 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-print.md +++ b/zh-cn/application-dev/reference/apis/js-apis-print.md @@ -178,7 +178,7 @@ import print from '@ohos.print'; let file = ['file://data/print/a.png', 'file://data/print/b.png']; // 或者传入fd // let file = ['fd://1', 'fd://2']; -print.print(file).then((printTask) => { +print.print(file).then((printTask: print.PrintTask) => { printTask.on('succeed', () => { console.log('print state is succeed') })