-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(exports): the package now exports all classes and interfaces nee…
…ded to write an implementation as types. (#280)
- Loading branch information
1 parent
dda06c9
commit 89b3764
Showing
10 changed files
with
123 additions
and
49 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
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
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,4 @@ | ||
import { IUser } from '../../src/types'; | ||
import { IUser } from '../../src'; | ||
|
||
/** | ||
* Example user object | ||
|
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,17 +1,60 @@ | ||
// Classes | ||
import H5PEditor from './H5PEditor'; | ||
import H5PPlayer from './H5PPlayer'; | ||
import H5pError from './helpers/H5pError'; | ||
import InstalledLibrary from './InstalledLibrary'; | ||
import LibraryName from './LibraryName'; | ||
import PackageExporter from './PackageExporter'; | ||
import TranslationService from './TranslationService'; | ||
|
||
// Interfaces | ||
import { | ||
ContentId, | ||
IContentMetadata, | ||
IContentStorage, | ||
IEditorConfig, | ||
IInstalledLibrary, | ||
IKeyValueStorage, | ||
ILibraryFileUrlResolver, | ||
ILibraryMetadata, | ||
ILibraryName, | ||
ILibraryStorage, | ||
ITemporaryFile, | ||
ITemporaryFileStorage, | ||
ITranslationService, | ||
IUser, | ||
Permission | ||
} from './types'; | ||
|
||
// Assets | ||
|
||
import englishStrings from './translations/en.json'; | ||
|
||
export default { | ||
export { | ||
// classes | ||
H5PEditor, | ||
H5pError, | ||
H5PPlayer, | ||
InstalledLibrary, | ||
LibraryName, | ||
PackageExporter, | ||
TranslationService, | ||
englishStrings, | ||
// tslint:disable-next-line: object-literal-sort-keys | ||
Editor: H5PEditor, | ||
Player: H5PPlayer | ||
// interfaces | ||
ContentId, | ||
IContentMetadata, | ||
IContentStorage, | ||
IEditorConfig, | ||
IInstalledLibrary, | ||
IKeyValueStorage, | ||
ILibraryFileUrlResolver, | ||
ILibraryMetadata, | ||
ILibraryName, | ||
ILibraryStorage, | ||
ITemporaryFile, | ||
ITemporaryFileStorage, | ||
ITranslationService, | ||
IUser, | ||
Permission, | ||
// assets | ||
englishStrings | ||
}; |
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