You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2017/04/27 20:05:29 UTC

[05/12] cordova-plugin-splashscreen git commit: CB-12369: Add plugin typings from DefinitelyTyped

CB-12369: Add plugin typings from DefinitelyTyped

 This closes #123


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/commit/894d1641
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/tree/894d1641
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/diff/894d1641

Branch: refs/heads/4.0.x
Commit: 894d1641915c4dead6656dc4e874a0b6b014addf
Parents: caa5534
Author: Nikita Matrosov <v-...@microsoft.com>
Authored: Thu Jan 19 16:11:15 2017 +0300
Committer: Vladimir Kotikov <ko...@gmail.com>
Committed: Fri Jan 20 11:56:43 2017 +0300

----------------------------------------------------------------------
 package.json     |  1 +
 types/index.d.ts | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/894d1641/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 9df051f..943b53b 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,7 @@
   "name": "cordova-plugin-splashscreen",
   "version": "4.0.2-dev",
   "description": "Cordova Splashscreen Plugin",
+  "types": "./types/index.d.ts",
   "cordova": {
     "id": "cordova-plugin-splashscreen",
     "platforms": [

http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/894d1641/types/index.d.ts
----------------------------------------------------------------------
diff --git a/types/index.d.ts b/types/index.d.ts
new file mode 100644
index 0000000..968b340
--- /dev/null
+++ b/types/index.d.ts
@@ -0,0 +1,17 @@
+// Type definitions for Apache Cordova Splashscreen plugin
+// Project: https://github.com/apache/cordova-plugin-splashscreen
+// Definitions by: Microsoft Open Technologies Inc <http://msopentech.com>
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// 
+// Copyright (c) Microsoft Open Technologies Inc
+// Licensed under the MIT license.
+
+interface Navigator {
+    /** This plugin displays and hides a splash screen during application launch. */
+    splashscreen: {
+        /** Dismiss the splash screen. */
+        hide(): void;
+        /** Displays the splash screen. */
+        show(): void;
+    }
+}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org