Skip to content

Instantly share code, notes, and snippets.

@sebastiankade
Created February 21, 2019 07:50
Show Gist options
  • Save sebastiankade/cd99934cac828258337cd3b2cf092050 to your computer and use it in GitHub Desktop.
Save sebastiankade/cd99934cac828258337cd3b2cf092050 to your computer and use it in GitHub Desktop.
// 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