CB-12369: Add plugin typings from DefinitelyTyped

This closes #123
This commit is contained in:
Nikita Matrosov 2017-01-19 16:11:15 +03:00 committed by Vladimir Kotikov
parent caa5534c0d
commit 894d164191
2 changed files with 18 additions and 0 deletions

View File

@ -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": [

17
types/index.d.ts vendored Normal file
View File

@ -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;
}
}