Skip to content

Commit

Permalink
fix types export
Browse files Browse the repository at this point in the history
  • Loading branch information
neSpecc committed Oct 12, 2024
1 parent 4d02425 commit 5780b0f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
10 changes: 2 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import 'regenerator-runtime/runtime';
import Catcher from './catcher';
import { HawkInitialSettings, AffectedUser } from './types/hawk-initial-settings';
import { HawkJavaScriptEvent } from './types/event';
export { AffectedUser } from '@hawk.so/types';
export * from './types';

export default Catcher;

export {
HawkInitialSettings,
AffectedUser,
HawkJavaScriptEvent
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface HawkInitialSettings {
* Enable debug mode
* Send raw event's data additionally in addons field by key 'RAW_EVENT_DATA'
*/
debug: boolean;
debug?: boolean;

/**
* Current release and bundle version
Expand Down Expand Up @@ -66,7 +66,3 @@ export interface HawkInitialSettings {
*/
beforeSend?(event: HawkJavaScriptEvent): HawkJavaScriptEvent;
}

export {
AffectedUser
};
2 changes: 1 addition & 1 deletion src/types/index.d.ts → src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import CatcherMessage from './catcher-message';
import HawkInitialSettings from './hawk-initial-settings';
import { HawkInitialSettings } from './hawk-initial-settings';
import { HawkJavaScriptEvent } from './event';

export {
Expand Down
2 changes: 1 addition & 1 deletion stats.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

Size: 7.3 KB with all dependencies, minified and gzipped
Size: 7.37 KB with all dependencies, minified and gzipped

0 comments on commit 5780b0f

Please sign in to comment.