notyf: Provides its own types (#39484)

This commit is contained in:
Alexander T
2019-11-01 08:06:00 -07:00
committed by Jesse Trinity
parent 1481ed3807
commit f2b8b3b4e0
5 changed files with 6 additions and 53 deletions
+6
View File
@@ -2532,6 +2532,12 @@
"sourceRepoURL": "https://github.com/paularmstrong/normalizr",
"asOfVersion": "2.0.18"
},
{
"libraryName": "notyf",
"typingsPackageName": "notyf",
"sourceRepoURL": "https://github.com/caroso1222/notyf",
"asOfVersion": "3.0.0"
},
{
"libraryName": "npm-email",
"typingsPackageName": "npm-email",
-18
View File
@@ -1,18 +0,0 @@
// Type definitions for notyf 2.0
// Project: https://github.com/caroso1222/notyf
// Definitions by: Pavel Gurov <https://github.com/gurov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Options {
delay?: number;
alertIcon?: string;
confirmIcon?: string;
}
declare class Notyf {
constructor(options?: Options);
alert(text: string): void;
confirm(text: string): void;
}
export = Notyf;
-11
View File
@@ -1,11 +0,0 @@
import Notyf = require("notyf");
const options = {
delay: 1000,
alertIcon: 'fa fa-bell',
confirmIcon: 'fa fa-exclamation'
};
const notyf = new Notyf(options);
notyf.alert('Danger!');
notyf.confirm('Success!');
-23
View File
@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"notyf-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }