-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export relevant interfaces alongside init function type
This adds a new `client-entry-type.ts` file in order to avoid exporting interfaces from `client-entry.ts` directly, which a) causes warnings at build time (see webpack/webpack#7378) and also makes the exported interfaces appear in the js dist file, which we don't want. The only purpose of this file is to export the type of the init function from `client-entry.ts` and other interfaces that may be useful for consumers. Bug: T342235 Change-Id: I71fb071bcd7dafa817e22ff04d8bfcefcd9a26e1
- Loading branch information
Showing
3 changed files
with
22 additions
and
2 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This file only exists to export types that may be useful to consumers without | ||
// exporting interfaces from client-entry.ts itself. | ||
|
||
export { default } from './client-entry'; | ||
export { default as EntityRepository } from '@/common/data-access/EntityRepository'; | ||
export { default as WritingEntityRepository } from '@/common/data-access/WritingEntityRepository'; | ||
export { default as TechnicalProblem } from '@/common/data-access/error/TechnicalProblem'; |