ngParty / ng-metadata

Angular 2 decorators and utils for Angular 1.x
https://hotell.gitbooks.io/ng-metadata/content/
MIT License
355 stars 46 forks source link

Migrate to Typescript 2.x and @types #177

Closed Hotell closed 8 years ago

Hotell commented 8 years ago

remove deprecated typings dependencies and expose separate file for angular type definitions extension ( for consumers of deprecated provide from ng-metadata/core)

When this is resolved, consumers which are using deprecated provide within angular 1 , .service,.directive,.filter for example: .service( ...provide(MyService) ), will have to explicitly import reference for this new type definition file from theirs global.d.ts project file like this:

// ./global.d.ts
/// <reference path="./node_modules/ng-metadata/manual_typings/angular-extension.d.ts" />

or if they are using files and include field within tsconfig.json

{
  "include":[
    "src/**/*.ts"
  ],
  "files": [
    "node_modules/ng-metadata/manual_typings/angular-extension.d.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

NOTE: This will be a BREAKING CHANGE, so expect major version bump!

Hotell commented 8 years ago

Closed by https://github.com/ngParty/ng-metadata/commit/3153bca6e063b59421634a37329df57ec608afd0