You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
…t them to source
- bump to typescript@next which resolves issues with type declaration generation
- extract angular module type overrides to separate file which should by included within consumer app
- make global.d.ts truly global
- use only ng.* namespace for types ( no angular )
- update tsconfig to make tsc faster, stronger ;)
- fix compile errors introduced by latest ts 2.1 with better any type inference
- fix NgModule decorator options types to properly allow registering downgraded ng2 entities
Closes#175, #177
BREAKING CHANGE:
We now officialy support only angular typings provided via npm `@types/*` and also typescript 2.x
- your existing typings provided by `typings` might not work
- from now on if you wanna use deprecated `provide` function from `ng-metadata/core` with registration within `angular.module().directive|service|filter` you have to explicitly include angular types extension provided by ng-metadata from `node_modules/ng-metadata/manual_typings/angular-extension.d.ts`
Before:
```typescript
// global.d.ts
/// <reference path="../node_modules/ng-metadata/manual_typings/globals.d.ts" />
```
After:
```typescript
/// <reference path="../node_modules/ng-metadata/manual_typings/angular-extension.d.ts" />
```
or you can include it from within your tsconfig.json like this:
```json
{
"include":[
"src/**/*.ts"
],
"files": [
"node_modules/ng-metadata/manual_typings/angular-extension.d.ts"
],
"exclude": [
"node_modules"
]
}
```
remove deprecated
typings
dependencies and expose separate file for angular type definitions extension ( for consumers of deprecatedprovide
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:or if they are using
files
andinclude
field withintsconfig.json
NOTE:
This will be a BREAKING CHANGE, so expect major version bump!
The text was updated successfully, but these errors were encountered: