From e4d396d1b0192eb0777edd990de6ed9057c1ef51 Mon Sep 17 00:00:00 2001 From: Maksym Butsykin Date: Fri, 12 Aug 2016 16:01:44 +0300 Subject: [PATCH] Add type definition for angular-es --- angular-es/angular-es-tests.ts | 20 ++++++++++---------- angular-es/angular-es.d.ts | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/angular-es/angular-es-tests.ts b/angular-es/angular-es-tests.ts index 9565c3ef70..2e44d5d0a8 100644 --- a/angular-es/angular-es-tests.ts +++ b/angular-es/angular-es-tests.ts @@ -17,7 +17,7 @@ class MyComponentController { // import { Config } from 'angular-es'; -@Config +@Config() class MyConfig { } @@ -87,13 +87,13 @@ class MyFilter { import { Inject } from 'angular-es'; @Inject('fooBar') -class MyService { +class MyFooService { @Inject('bazBar') - myMethod(bazBar) { + myMethod(bazBar: Object) { } - constructor(fooBar) { + constructor(fooBar: Object) { } } @@ -103,8 +103,8 @@ class MyService { import { InjectAsProperty } from 'angular-es'; @InjectAsProperty('fooBar') -class MyService { - fooBar; +class MyFooBarService { + fooBar: Object; myMethod() { this.fooBar !== undefined; @@ -114,11 +114,11 @@ class MyService { // // @Module // -import { Module, Service } from 'angular-es'; +import { Module } from 'angular-es'; @Module('my.module') -@Service('MyService') -class MyService { +@Service('MyModuleService') +class MyModuleService { } // @@ -135,7 +135,7 @@ class MyProvider { // import { Run } from 'angular-es'; -@Run +@Run() class MyRunBlock { } diff --git a/angular-es/angular-es.d.ts b/angular-es/angular-es.d.ts index cce597eb1d..10979ae15c 100644 --- a/angular-es/angular-es.d.ts +++ b/angular-es/angular-es.d.ts @@ -21,7 +21,7 @@ declare module 'angular-es' { ngName?: string, ngArguments?: Array, ngType?: string, - injectAsProperty?: Array); + injectAsProperty?: Array): void; } /**