From 8263363edfffb75af7a5f281816b92b5e3637a62 Mon Sep 17 00:00:00 2001 From: qimeng Date: Fri, 19 Aug 2022 17:28:31 +0800 Subject: [PATCH 1/2] Signed-off-by: qimeng Changes to be committed: modified: api/@ohos.pasteboard.d.ts --- api/@ohos.pasteboard.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/@ohos.pasteboard.d.ts b/api/@ohos.pasteboard.d.ts index 51ce099262..fcf18ef6ac 100644 --- a/api/@ohos.pasteboard.d.ts +++ b/api/@ohos.pasteboard.d.ts @@ -310,6 +310,13 @@ declare namespace pasteboard { */ getProperty(): PasteDataProperty; + /** + * Set PasteDataProperty to a PasteData object. + * @param { PasteDataProperty } property - save property to PasteData object. + * @since 9 + */ + setProperty(property: PasteDataProperty): void; + /** * a Record based on a specified index. * @param index The index to specify the content item -- Gitee From 3e4cfe3fad151793772dcfe9a69c163b04ee8d6c Mon Sep 17 00:00:00 2001 From: qimeng Date: Thu, 25 Aug 2022 02:18:37 +0000 Subject: [PATCH 2/2] update api/@ohos.pasteboard.d.ts. Signed-off-by: qimeng --- api/@ohos.pasteboard.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/@ohos.pasteboard.d.ts b/api/@ohos.pasteboard.d.ts index fcf18ef6ac..b5bafed858 100644 --- a/api/@ohos.pasteboard.d.ts +++ b/api/@ohos.pasteboard.d.ts @@ -313,6 +313,7 @@ declare namespace pasteboard { /** * Set PasteDataProperty to a PasteData object. * @param { PasteDataProperty } property - save property to PasteData object. + * @throws { TypedError } if property not a PasteDataProperty object. * @since 9 */ setProperty(property: PasteDataProperty): void; -- Gitee