From 92afa236709a034e7f960d9cdaa35beb12cae94a Mon Sep 17 00:00:00 2001 From: jiangdayuan Date: Thu, 23 Sep 2021 11:34:48 +0800 Subject: [PATCH] jiangdayuan@huawei.com Signed-off-by: jiangdayuan Change-Id: I3e61643ca0738ef007afcb8c53333a17bccfe508 --- api/common/@internal/viewmodel.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/common/@internal/viewmodel.d.ts b/api/common/@internal/viewmodel.d.ts index bf5b3631b0..42e3a7e5e9 100644 --- a/api/common/@internal/viewmodel.d.ts +++ b/api/common/@internal/viewmodel.d.ts @@ -2183,7 +2183,7 @@ export interface CanvasElement extends Element { * @param options use this context attributes to creating rendering context. * @devices tv, phone, tablet, wearable, smartVision */ - getContext(type: string, options?: ContextAttrOptions): CanvasRenderingContext2D; + getContext(type: '2d', options?: ContextAttrOptions): CanvasRenderingContext2D; /** * Creates a data URI that contains the image display. -- Gitee