From f2b8b3b4e0a3d678f117541f65a00b7cddbf460e Mon Sep 17 00:00:00 2001 From: Alexander T Date: Fri, 1 Nov 2019 17:06:00 +0200 Subject: [PATCH] notyf: Provides its own types (#39484) --- notNeededPackages.json | 6 ++++++ types/notyf/index.d.ts | 18 ------------------ types/notyf/notyf-tests.ts | 11 ----------- types/notyf/tsconfig.json | 23 ----------------------- types/notyf/tslint.json | 1 - 5 files changed, 6 insertions(+), 53 deletions(-) delete mode 100644 types/notyf/index.d.ts delete mode 100644 types/notyf/notyf-tests.ts delete mode 100644 types/notyf/tsconfig.json delete mode 100644 types/notyf/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index dff76875b6..b770290d84 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -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", diff --git a/types/notyf/index.d.ts b/types/notyf/index.d.ts deleted file mode 100644 index 25607add44..0000000000 --- a/types/notyf/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Type definitions for notyf 2.0 -// Project: https://github.com/caroso1222/notyf -// Definitions by: Pavel 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; diff --git a/types/notyf/notyf-tests.ts b/types/notyf/notyf-tests.ts deleted file mode 100644 index add8338465..0000000000 --- a/types/notyf/notyf-tests.ts +++ /dev/null @@ -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!'); diff --git a/types/notyf/tsconfig.json b/types/notyf/tsconfig.json deleted file mode 100644 index 18fb007211..0000000000 --- a/types/notyf/tsconfig.json +++ /dev/null @@ -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" - ] -} \ No newline at end of file diff --git a/types/notyf/tslint.json b/types/notyf/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/notyf/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }