From f1223e93a729001416bf58b6a9d423403e4a686c Mon Sep 17 00:00:00 2001 From: Pablo Date: Mon, 4 Feb 2019 18:34:34 +0100 Subject: [PATCH] Fixed a few issues --- types/assets.d.ts | 6 +++--- types/{cloud.ts => cloud.d.ts} | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) rename types/{cloud.ts => cloud.d.ts} (96%) diff --git a/types/assets.d.ts b/types/assets.d.ts index ecc6330..bc83d6a 100644 --- a/types/assets.d.ts +++ b/types/assets.d.ts @@ -4,7 +4,7 @@ import {Color, LinearGradientFill, RadialGradientFill} from "./scenegraph"; * Represents the document styles listed in the Assets panel. Styles can be added and removed manually by the user, so there's no guarantee that these styles are currently used anywhere in the document's content. * **Since: ** XD 15 */ -export module assets { +declare module assets { /** * Type of gradient color element: linear gradient or radial gradient */ @@ -166,6 +166,6 @@ export module assets { */ public static delete(charStyleAssets: CharacterStyleAsset | Array): number; } +} - -} \ No newline at end of file +export = assets; \ No newline at end of file diff --git a/types/cloud.ts b/types/cloud.d.ts similarity index 96% rename from types/cloud.ts rename to types/cloud.d.ts index fa10a8c..bf88adf 100644 --- a/types/cloud.ts +++ b/types/cloud.d.ts @@ -1,4 +1,4 @@ -export module cloud { +declare namespace cloud { /** * Interactive prototype view generated via "Share for Review." */ @@ -101,5 +101,7 @@ export module cloud { * * @return {!Array} */ - declare function getSharedArtifacts(): Array; -} \ No newline at end of file + function getSharedArtifacts(): Array; +} + +export = cloud; \ No newline at end of file