2 Commits

Author SHA1 Message Date
d3b4a252e9 1.0.3 2016-10-12 14:10:02 +02:00
abc9e7888e improve README 2016-10-12 14:09:58 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -23,11 +23,11 @@ We recommend the use of TypeScript for best Intellisense
```typescript
import { LazyModule } from 'smartsystem'
import * as myPluginType from 'myPlugin' // plugin does not get loaded here at runtime
let myPluginLazy = new LazyModule<typeof myPlugin>('myPlugin')
import * as _myPlugin from 'myPlugin' // plugin does not get loaded here at runtime
let myPluginLazy = new LazyModule<typeof _myPlugin>('myPlugin')
import * as anotherPluginType from 'anotherPlugin' // plugin does not get loaded here at runtime
let anotherPluginPromised = LazyModule<typeof anotherPlugin>('anotherPlugin')
import * as _anotherPlugin from 'anotherPlugin' // plugin does not get loaded here at runtime
let anotherPluginPromised = LazyModule<typeof _anotherPlugin>('anotherPlugin')
myPluginLazy.whenLoaded.then(myPlugin => {
/* do something with myPlugin.

View File

@ -1,6 +1,6 @@
{
"name": "smartsystem",
"version": "1.0.2",
"version": "1.0.3",
"description": "wraps systemjs for smarter workflows",
"main": "dist/index.js",
"typings": "dist/index.d.ts",