-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
export * as ns
syntax (#3677)
- Loading branch information
1 parent
932cfec
commit 0443687
Showing
22 changed files
with
99 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import * as Contracts from "./interfaces"; | ||
import * as Schemas from "./schemas"; | ||
export * as Contracts from "./interfaces"; | ||
export * as Schemas from "./schemas"; | ||
|
||
export * from "./controllers/controller"; | ||
export * from "./identifiers"; | ||
export * from "./server"; | ||
export * from "./service-provider"; | ||
|
||
export { Contracts, Schemas }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
export * from "./database-service"; | ||
export * from "./service-provider"; | ||
|
||
import * as Models from "./models"; | ||
import * as Repositories from "./repositories"; | ||
|
||
export { Models, Repositories }; | ||
export * as Models from "./models"; | ||
export * as Repositories from "./repositories"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
import * as app from "./app"; | ||
import * as serviceProviders from "./service-providers"; | ||
|
||
export { app, serviceProviders }; | ||
export * as app from "./app"; | ||
export * as serviceProviders from "./service-providers"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import * as Blockchain from "./blockchain"; | ||
import * as Database from "./database"; | ||
import * as Kernel from "./kernel"; | ||
import * as P2P from "./p2p"; | ||
import * as Search from "./search"; | ||
import * as Shared from "./shared"; | ||
import * as State from "./state"; | ||
import * as TransactionPool from "./transaction-pool"; | ||
|
||
export { Blockchain, Database, Kernel, Search, P2P, Shared, State, TransactionPool }; | ||
export * as Blockchain from "./blockchain"; | ||
export * as Database from "./database"; | ||
export * as Kernel from "./kernel"; | ||
export * as P2P from "./p2p"; | ||
export * as Search from "./search"; | ||
export * as Shared from "./shared"; | ||
export * as State from "./state"; | ||
export * as TransactionPool from "./transaction-pool"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
import * as Cache from "./cache"; | ||
import * as Config from "./config"; | ||
import * as Container from "./container"; | ||
import * as Filesystem from "./filesystem"; | ||
import * as Logic from "./logic"; | ||
import * as Plugins from "./plugins"; | ||
import * as Runtime from "./runtime"; | ||
import * as Validation from "./validation"; | ||
|
||
export { Cache, Config, Container, Filesystem, Logic, Plugins, Runtime, Validation }; | ||
export * as Cache from "./cache"; | ||
export * as Config from "./config"; | ||
export * as Container from "./container"; | ||
export * as Filesystem from "./filesystem"; | ||
export * as Logic from "./logic"; | ||
export * as Plugins from "./plugins"; | ||
export * as Runtime from "./runtime"; | ||
export * as Validation from "./validation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { Application } from "./application"; | ||
import * as Contracts from "./contracts"; | ||
import * as Enums from "./enums"; | ||
import * as Exceptions from "./exceptions"; | ||
import * as Container from "./ioc"; | ||
import * as Providers from "./providers"; | ||
import * as Services from "./services"; | ||
import * as Support from "./support"; | ||
import * as Types from "./types"; | ||
import * as Utils from "./utils"; | ||
export * as Contracts from "./contracts"; | ||
export * as Enums from "./enums"; | ||
export * as Exceptions from "./exceptions"; | ||
export * as Container from "./ioc"; | ||
export * as Providers from "./providers"; | ||
export * as Services from "./services"; | ||
export * as Support from "./support"; | ||
export * as Types from "./types"; | ||
export * as Utils from "./utils"; | ||
|
||
export { Application, Container, Contracts, Enums, Exceptions, Providers, Services, Support, Types, Utils }; | ||
export { Application }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import "reflect-metadata"; | ||
|
||
import * as Selectors from "./selectors"; | ||
export * as Selectors from "./selectors"; | ||
|
||
export * from "inversify"; | ||
|
||
export * from "./identifiers"; | ||
export { Selectors }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import * as Attributes from "./attributes"; | ||
import * as Cache from "./cache"; | ||
import * as Config from "./config"; | ||
import * as Events from "./events"; | ||
import * as Filesystem from "./filesystem"; | ||
import * as Log from "./log"; | ||
import * as Pipeline from "./pipeline"; | ||
import * as Queue from "./queue"; | ||
import * as Schedule from "./schedule"; | ||
import * as Triggers from "./triggers"; | ||
import * as Validation from "./validation"; | ||
|
||
export { Attributes, Cache, Config, Events, Filesystem, Log, Pipeline, Queue, Schedule, Triggers, Validation }; | ||
export * as Attributes from "./attributes"; | ||
export * as Cache from "./cache"; | ||
export * as Config from "./config"; | ||
export * as Events from "./events"; | ||
export * as Filesystem from "./filesystem"; | ||
export * as Log from "./log"; | ||
export * as Pipeline from "./pipeline"; | ||
export * as Queue from "./queue"; | ||
export * as Schedule from "./schedule"; | ||
export * as Triggers from "./triggers"; | ||
export * as Validation from "./validation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import * as Builders from "./builders"; | ||
import * as Enums from "./enums"; | ||
import * as Interfaces from "./interfaces"; | ||
import * as Transactions from "./transactions"; | ||
|
||
export { Builders, Enums, Interfaces, Transactions }; | ||
export * as Builders from "./builders"; | ||
export * as Enums from "./enums"; | ||
export * as Interfaces from "./interfaces"; | ||
export * as Transactions from "./transactions"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
import * as Handlers from "./handlers"; | ||
export * as Handlers from "./handlers"; | ||
export * from "./service-provider"; | ||
|
||
export { Handlers }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
export * from "./service-provider"; | ||
import * as Wallets from "./wallets"; | ||
|
||
export { Wallets }; | ||
export * as Wallets from "./wallets"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import * as Factories from "./factories"; | ||
export * as Factories from "./factories"; | ||
|
||
export * from "./factory-builder"; | ||
export * from "./types"; | ||
export * from "./helpers"; | ||
|
||
export { Factories }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
import * as BlockRepository from "./block-repository"; | ||
import * as Blockchain from "./blockchain"; | ||
import * as NetworkMonitor from "./network-monitor"; | ||
import * as PeerStorage from "./peer-storage"; | ||
import * as TransactionPoolQuery from "./query"; | ||
import * as RoundRepository from "./round-repository"; | ||
import * as ServiceProviderRepository from "./service-provider-repository"; | ||
import * as StateStore from "./state-store"; | ||
import * as TransactionPoolProcessor from "./transaction-pool-processor"; | ||
import * as TransactionRepository from "./transaction-repository"; | ||
import * as WalletRepository from "./wallet-respository"; | ||
|
||
export { | ||
BlockRepository, | ||
Blockchain, | ||
NetworkMonitor, | ||
PeerStorage, | ||
TransactionPoolQuery, | ||
RoundRepository, | ||
ServiceProviderRepository, | ||
StateStore, | ||
TransactionPoolProcessor, | ||
TransactionRepository, | ||
WalletRepository, | ||
}; | ||
export * as BlockRepository from "./block-repository"; | ||
export * as Blockchain from "./blockchain"; | ||
export * as NetworkMonitor from "./network-monitor"; | ||
export * as PeerStorage from "./peer-storage"; | ||
export * as TransactionPoolQuery from "./query"; | ||
export * as RoundRepository from "./round-repository"; | ||
export * as ServiceProviderRepository from "./service-provider-repository"; | ||
export * as StateStore from "./state-store"; | ||
export * as TransactionPoolProcessor from "./transaction-pool-processor"; | ||
export * as TransactionRepository from "./transaction-repository"; | ||
export * as WalletRepository from "./wallet-respository"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { TransactionHandlerRegistry } from "./handler-registry"; | ||
import * as One from "./one"; | ||
export * as One from "./one"; | ||
import { TransactionHandler, TransactionHandlerConstructor } from "./transaction"; | ||
import * as Two from "./two"; | ||
export * as Two from "./two"; | ||
|
||
export { One, Two, TransactionHandler, TransactionHandlerConstructor, TransactionHandlerRegistry as Registry }; | ||
export { TransactionHandler, TransactionHandlerConstructor, TransactionHandlerRegistry as Registry }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export * from "./service-provider"; | ||
|
||
import * as Errors from "./errors"; | ||
import * as Handlers from "./handlers"; | ||
export * as Errors from "./errors"; | ||
export * as Handlers from "./handlers"; | ||
|
||
export * from "./transaction-reader"; | ||
export { Errors, Handlers }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
import * as Blocks from "./blocks"; | ||
import * as Constants from "./constants"; | ||
import * as Crypto from "./crypto"; | ||
import * as Enums from "./enums"; | ||
import * as Errors from "./errors"; | ||
import * as Identities from "./identities"; | ||
import * as Interfaces from "./interfaces"; | ||
import * as Managers from "./managers"; | ||
import * as Networks from "./networks"; | ||
import * as Transactions from "./transactions"; | ||
import * as Types from "./types"; | ||
import * as Utils from "./utils"; | ||
import * as Validation from "./validation"; | ||
|
||
export { | ||
Blocks, | ||
Constants, | ||
Crypto, | ||
Enums, | ||
Errors, | ||
Identities, | ||
Interfaces, | ||
Managers, | ||
Networks, | ||
Transactions, | ||
Types, | ||
Utils, | ||
Validation, | ||
}; | ||
export * as Blocks from "./blocks"; | ||
export * as Constants from "./constants"; | ||
export * as Crypto from "./crypto"; | ||
export * as Enums from "./enums"; | ||
export * as Errors from "./errors"; | ||
export * as Identities from "./identities"; | ||
export * as Interfaces from "./interfaces"; | ||
export * as Managers from "./managers"; | ||
export * as Networks from "./networks"; | ||
export * as Transactions from "./transactions"; | ||
export * as Types from "./types"; | ||
export * as Utils from "./utils"; | ||
export * as Validation from "./validation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters