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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -