Showing
4 changed files
with
10 additions
and
3 deletions
| 1 | +import { Http } from '@angular/http'; | ||
| 1 | import { ModuleWithProviders } from '@angular/core'; | 2 | import { ModuleWithProviders } from '@angular/core'; |
| 3 | +import { Rest } from './services/rest'; | ||
| 4 | +import { Repository } from './services/repository'; | ||
| 2 | export { Rest } from './services/rest'; | 5 | export { Rest } from './services/rest'; |
| 3 | export { Repository } from './services/repository'; | 6 | export { Repository } from './services/repository'; |
| 4 | export { Device } from './services/device'; | 7 | export { Device } from './services/device'; |
| 8 | +export declare function provideRest(http: Http): Rest; | ||
| 9 | +export declare function provideRepository(rest: Rest): Repository; | ||
| 5 | export declare class DigsigServicesModule { | 10 | export declare class DigsigServicesModule { |
| 6 | static forRoot(): ModuleWithProviders; | 11 | static forRoot(): ModuleWithProviders; |
| 7 | } | 12 | } | ... | ... |
| ... | @@ -19,9 +19,11 @@ exports.Device = device_2.Device; | ... | @@ -19,9 +19,11 @@ exports.Device = device_2.Device; |
| 19 | function provideRest(http) { | 19 | function provideRest(http) { |
| 20 | return new rest_1.Rest(http); | 20 | return new rest_1.Rest(http); |
| 21 | } | 21 | } |
| 22 | +exports.provideRest = provideRest; | ||
| 22 | function provideRepository(rest) { | 23 | function provideRepository(rest) { |
| 23 | return new repository_1.Repository(rest, new device_1.Device); | 24 | return new repository_1.Repository(rest, new device_1.Device); |
| 24 | } | 25 | } |
| 26 | +exports.provideRepository = provideRepository; | ||
| 25 | var DigsigServicesModule = DigsigServicesModule_1 = (function () { | 27 | var DigsigServicesModule = DigsigServicesModule_1 = (function () { |
| 26 | function DigsigServicesModule() { | 28 | function DigsigServicesModule() { |
| 27 | } | 29 | } | ... | ... |
| 1 | -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,sCAAiD;AACjD,sCAA8D;AAC9D,wCAAuC;AACvC,oDAAmD;AACnD,4CAA2C;AAE3C,wCAAuC;AAA9B,sBAAA,IAAI,CAAA;AACb,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,4CAA2C;AAAlC,0BAAA,MAAM,CAAA;AAEf,qBAAqB,IAAS;IAC1B,MAAM,CAAC,IAAI,WAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,2BAA2B,IAAS;IAChC,MAAM,CAAC,IAAI,uBAAU,CAAC,IAAI,EAAE,IAAI,eAAM,CAAC,CAAC;AAC5C,CAAC;AAOD,IAAa,oBAAoB;IAAjC;IAUA,CAAC;IATQ,4BAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,sBAAoB;YAC9B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,WAAI,EAAE,UAAU,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;gBACtD,EAAE,OAAO,EAAE,uBAAU,EAAE,UAAU,EAAC,iBAAiB,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;aACnE;SACF,CAAA;IACH,CAAC;IACH,2BAAC;AAAD,CAAC,AAVD,IAUC;AAVY,oBAAoB;IALhC,eAAQ,CAAC;QACN,OAAO,EAAG;YACN,iBAAU;SACb;KACJ,CAAC;GACW,oBAAoB,CAUhC;AAVY,oDAAoB"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;AAAA,sCAAiD;AACjD,sCAA8D;AAC9D,wCAAuC;AACvC,oDAAmD;AACnD,4CAA2C;AAE3C,wCAAuC;AAA9B,sBAAA,IAAI,CAAA;AACb,oDAAmD;AAA1C,kCAAA,UAAU,CAAA;AACnB,4CAA2C;AAAlC,0BAAA,MAAM,CAAA;AAEf,qBAA4B,IAAS;IACjC,MAAM,CAAC,IAAI,WAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAFD,kCAEC;AAED,2BAAkC,IAAS;IACvC,MAAM,CAAC,IAAI,uBAAU,CAAC,IAAI,EAAE,IAAI,eAAM,CAAC,CAAC;AAC5C,CAAC;AAFD,8CAEC;AAOD,IAAa,oBAAoB;IAAjC;IAUA,CAAC;IATQ,4BAAO,GAAd;QACE,MAAM,CAAC;YACL,QAAQ,EAAE,sBAAoB;YAC9B,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,WAAI,EAAE,UAAU,EAAC,WAAW,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;gBACtD,EAAE,OAAO,EAAE,uBAAU,EAAE,UAAU,EAAC,iBAAiB,EAAE,IAAI,EAAC,CAAC,WAAI,CAAC,EAAE;aACnE;SACF,CAAA;IACH,CAAC;IACH,2BAAC;AAAD,CAAC,AAVD,IAUC;AAVY,oBAAoB;IALhC,eAAQ,CAAC;QACN,OAAO,EAAG;YACN,iBAAU;SACb;KACJ,CAAC;GACW,oBAAoB,CAUhC;AAVY,oDAAoB"} | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -8,11 +8,11 @@ export { Rest } from './services/rest'; | ... | @@ -8,11 +8,11 @@ export { Rest } from './services/rest'; |
| 8 | export { Repository } from './services/repository'; | 8 | export { Repository } from './services/repository'; |
| 9 | export { Device } from './services/device'; | 9 | export { Device } from './services/device'; |
| 10 | 10 | ||
| 11 | -function provideRest(http:Http) : Rest { | 11 | +export function provideRest(http:Http) : Rest { |
| 12 | return new Rest(http); | 12 | return new Rest(http); |
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | -function provideRepository(rest:Rest) : Repository { | 15 | +export function provideRepository(rest:Rest) : Repository { |
| 16 | return new Repository(rest, new Device); | 16 | return new Repository(rest, new Device); |
| 17 | } | 17 | } |
| 18 | 18 | ... | ... |
-
Please register or login to post a comment