-
-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(types): module exports for TypeScript for ES6 compliance. #918
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
import Aedes, { AedesOptions } from './types/instance' | ||
export * from './types/instance'; | ||
Check failure on line 1 in aedes.d.ts GitHub Actions / test (16, ubuntu-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (16, windows-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (16, macOS-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (18, ubuntu-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (18, windows-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (18, macOS-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (20, ubuntu-latest)
Check failure on line 1 in aedes.d.ts GitHub Actions / test (20, windows-latest)
|
||
export * from './types/packet'; | ||
Check failure on line 2 in aedes.d.ts GitHub Actions / test (16, ubuntu-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (16, windows-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (16, macOS-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (18, ubuntu-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (18, windows-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (18, macOS-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (20, ubuntu-latest)
Check failure on line 2 in aedes.d.ts GitHub Actions / test (20, windows-latest)
|
||
export * from './types/client'; | ||
Check failure on line 3 in aedes.d.ts GitHub Actions / test (16, ubuntu-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (16, windows-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (16, macOS-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (18, ubuntu-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (18, windows-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (18, macOS-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (20, ubuntu-latest)
Check failure on line 3 in aedes.d.ts GitHub Actions / test (20, windows-latest)
|
||
|
||
export declare function createBroker (options?: AedesOptions): Aedes | ||
|
||
export * from './types/instance' | ||
export * from './types/packet' | ||
export * from './types/client' | ||
export default Aedes | ||
|
||
declare module 'aedes' { | ||
export = Aedes | ||
} | ||
export { default } from './types/instance'; | ||
Check failure on line 5 in aedes.d.ts GitHub Actions / test (16, ubuntu-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (16, windows-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (16, macOS-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (18, ubuntu-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (18, windows-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (18, macOS-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (20, ubuntu-latest)
Check failure on line 5 in aedes.d.ts GitHub Actions / test (20, windows-latest)
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure this is correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you removed this?