Created
February 21, 2019 07:50
-
-
Save sebastiankade/cd99934cac828258337cd3b2cf092050 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// export the default export of a legacy (`export =`) module | |
export import MessageBase = require('./message-base'); | |
// export the default export of a modern (`export default`) module | |
export { default as MessageBase } from './message-base'; | |
// export an interface from a legacy module | |
import Types = require('./message-types'); | |
export type IMessage = Types.IMessage; | |
// export an interface from a modern module | |
export { IMessage } from './message-types'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment