I am trying to move from using external ( export ) modules to using internal modules. But I get an error when I delete the "export".
I have a file like this:
box.ts:
import {computedFrom} from 'aurelia-framework'; module Entities { export class Box { .. Stuff }
I am using this in another file.
service actions.ts:
This gives me the following error:
The 'Box' property does not exist on 'typeof (Entities)'
But if I output import {computedFrom} from 'aurelia-framework'; then the error will disappear (it works fine).
I tried moving import {computedFrom} from 'aurelia-framework'; into the module. When I do this, the error is gone, but I get a new one:
Importing declarations in the namespace cannot reference the module.
What can I do to use the computedFrom module in my class? (Should it be an external module to work?)
javascript import module typescript
Vaccano Dec 10 '15 at 17:14 2015-12-10 17:14
source share