typescript - Create Custom Types File And Use Angular 2 Types With It -


im struggling see how reference angular2 types inside custom_typings.d.ts file.

so far i've tried:

importing: import {control} 'angular2/common'

referencing: ///<reference path='../typings/main/definitions/angular2/angular2.d.ts' />'

all happens typescript compiler fails ton of errors. how create custom types angular types included?

looking this:

declare module mg {    export interface istageform {     dept: control; // angular type    }  } 

its worth noting using angular 2 webpack boilerplate uses 'typings' type management. missing obvious here?

also using `import * common 'angular2/common' lets me reference type need, typescript compiler fails saying can't find module "mg" type used inside of


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -