From 2bba8fb71c97e79a7455fa71686f3184dbff270e Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Wed, 16 Jan 2019 11:26:57 -0800 Subject: [PATCH] Adding createPresentation to PowerPoint 1.1 --- types/office-js-preview/index.d.ts | 11 ++++++++++- types/office-js/index.d.ts | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 2df9aed3eb..ed3c680764 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -84558,7 +84558,16 @@ declare namespace Visio { ///////////////////// Begin PowerPoint APIs //////////////////// //////////////////////////////////////////////////////////////// -// Empty placeholder, for now +declare namespace PowerPoint { + /** + * Creates and opens a new presentation. Optionally, the presentation can be pre-populated with a base64-encoded .pptx file. + * + * [Api set: PowerPointApi 1.1] + * + * @param base64File Optional. The base64-encoded .pptx file. The default value is null. + */ + function createPresentation(base64File?: string): Promise; +} //////////////////////////////////////////////////////////////// ////////////////////// End PowerPoint APIs ///////////////////// diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index b15cd3653a..7db0b35548 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -69506,7 +69506,16 @@ declare namespace Visio { ///////////////////// Begin PowerPoint APIs //////////////////// //////////////////////////////////////////////////////////////// -// Empty placeholder, for now +declare namespace PowerPoint { + /** + * Creates and opens a new presentation. Optionally, the presentation can be pre-populated with a base64-encoded .pptx file. + * + * [Api set: PowerPointApi 1.1] + * + * @param base64File Optional. The base64-encoded .pptx file. The default value is null. + */ + function createPresentation(base64File?: string): Promise; +} //////////////////////////////////////////////////////////////// ////////////////////// End PowerPoint APIs /////////////////////