@@ -24,7 +24,7 @@ declare module "foo"{
2424** Implementation file (foo.ts):**
2525
2626``` javascript
27- import definition = require( " foo" ) ;
27+ import * as definition from " foo" ;
2828
2929export function a (){
3030 // do somethign here
@@ -53,7 +53,7 @@ declare module "foo"{
5353** Android implementation file (foo.android.ts):**
5454
5555``` javascript
56- import definition = require( " foo" ) ;
56+ import * as definition from " foo" ;
5757
5858// require the definition and put implements clause to ensure API consistency between the declaration and implementation
5959export class Foo implements definition .Foo {
@@ -72,7 +72,7 @@ export class Foo implements definition.Foo {
7272** iOS implementation file (foo.ios.ts):**
7373
7474``` javascript
75- import definition = require( " foo" ) ;
75+ import * as definition from " foo" ;
7676
7777// require the definition and put implements clause to ensure API consistency between the declaration and implementation
7878export class Foo implements definition .Foo {
@@ -109,7 +109,7 @@ declare module "foo"{
109109** Common implementation file (foo-common.ts):**
110110
111111``` javascript
112- import definition = require( " foo" ) ;
112+ import * as definition from " foo" ;
113113
114114// require the definition and put implements clause to ensure API consistency between the declaration and implementation
115115export class Foo implements definition .Foo {
@@ -128,7 +128,7 @@ export class Foo implements definition.Foo {
128128** Android implementation file (foo.android.ts):**
129129
130130``` javascript
131- import common = require( " foo-common" ) ;
131+ import * as common from " foo-common" ;
132132
133133// require the common file and extend the base common implementation
134134export class Foo extends common .Foo {
@@ -148,7 +148,7 @@ export class Foo extends common.Foo {
148148** iOS implementation file (foo.ios.ts):**
149149
150150``` javascript
151- import common = require( " foo-common" ) ;
151+ import * as common from " foo-common" ;
152152
153153// require the common file and extend the base common implementation
154154export class Foo extends common .Foo {
@@ -215,8 +215,8 @@ export function stopNative(){
215215**Common implementation file (foo.ts):**
216216
217217` ` ` javascript
218- import definition = require( " foo" ) ;
219- import fooNative = require( " foo-native" ) ;
218+ import * as definition from " foo" ;
219+ import * as fooNative from " foo-native" ;
220220
221221// require the definition and put implements clause to ensure API consistency between the declaration and implementation
222222export class Foo implements definition .Foo {
0 commit comments