Skip to content
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

Merged
merged 4 commits into from
Dec 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions aedes.d.ts
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

View workflow job for this annotation

GitHub Actions / test (16, ubuntu-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, windows-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, macOS-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, ubuntu-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, windows-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, macOS-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, ubuntu-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, windows-latest)

Extra semicolon

Check failure on line 1 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, macOS-latest)

Extra semicolon
export * from './types/packet';

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, ubuntu-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, windows-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, macOS-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, ubuntu-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, windows-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, macOS-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, ubuntu-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, windows-latest)

Extra semicolon

Check failure on line 2 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, macOS-latest)

Extra semicolon
export * from './types/client';

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, ubuntu-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, windows-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, macOS-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, ubuntu-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, windows-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, macOS-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, ubuntu-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, windows-latest)

Extra semicolon

Check failure on line 3 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, macOS-latest)

Extra semicolon

export declare function createBroker (options?: AedesOptions): Aedes
Copy link
Member

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?


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

View workflow job for this annotation

GitHub Actions / test (16, ubuntu-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, windows-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (16, macOS-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, ubuntu-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, windows-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (18, macOS-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, ubuntu-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, windows-latest)

Extra semicolon

Check failure on line 5 in aedes.d.ts

View workflow job for this annotation

GitHub Actions / test (20, macOS-latest)

Extra semicolon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is correct

Loading