From 9a8da0a4e0c26bba6c86f4923d5e4917b3f0a5b8 Mon Sep 17 00:00:00 2001 From: Jonathan Bouzekri Date: Thu, 19 May 2016 21:52:47 +0200 Subject: [PATCH] change components.d.ts declarations --- components.d.ts | 23 +++++++++++++++++++++-- package.json | 16 ++++++++++++---- tsconfig.json | 2 +- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/components.d.ts b/components.d.ts index 0bffce4..7e7d6a0 100644 --- a/components.d.ts +++ b/components.d.ts @@ -1,2 +1,21 @@ -export * from './lib/simpleNotifications.component'; -export * from './lib/notifications.service'; \ No newline at end of file + +export declare class SimpleNotificationsComponent { +} + +export declare class NotificationsService { + success(title: string, content: string, override?: any) + + error(title: string, content: string, override?: any) + + alert(title: string, content: string, override?: any) + + info(title: string, content: string, override?: any) + + bare(title: string, content: string, override?: any) + + create(title: string, content: string, type: string, override?: any) + + html(html: any, type: string, override?: any) + + remove(id?: string) +} diff --git a/package.json b/package.json index ab38814..39b5cf8 100644 --- a/package.json +++ b/package.json @@ -23,11 +23,19 @@ "url": "https://github.com/flauc/angular2-notifications/issues" }, "homepage": "https://github.com/flauc/angular2-notifications", - "dependencies": { - "@angular/core": "2.0.0-rc.1" + "peerDependencies": { + "@angular/core": "^2.0.0-rc.1", + "rxjs": "5.0.0-beta.6" }, "devDependencies": { "gulp": "^3.9.1", - "typescript": "^1.7.5" - } + "@angular/core": "^2.0.0-rc.1", + "es6-shim": "^0.35.0", + "reflect-metadata": "0.1.2", + "rxjs": "5.0.0-beta.6", + "typescript": "^1.8.10", + "typings": "^0.7.12", + "zone.js": "~0.6.12" + }, + "typings": "./components.d.ts" } diff --git a/tsconfig.json b/tsconfig.json index 6974b6a..9a4dad3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,4 +19,4 @@ "src/notificationType.ts", "src/simpleNotifications.component.ts" ] -} \ No newline at end of file +}