Skip to content

Commit

Permalink
TS: export events and other auxiliary types (closes #408)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed Aug 16, 2024
1 parent 201ecf4 commit 00c3bbc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,15 @@ const naja = new Naja();
naja.registerExtension(new AbortExtension());
naja.registerExtension(new UniqueExtension());

export type {InitEvent, BeforeEvent, StartEvent, AbortEvent, PayloadEvent, SuccessEvent, ErrorEvent, CompleteEvent} from './Naja';
export type {BuildStateEvent, RestoreStateEvent} from './core/HistoryHandler';
export type {RedirectEvent} from './core/RedirectHandler';
export type {StoreEvent, FetchEvent, RestoreEvent} from './core/SnippetCache';
export type {BeforeUpdateEvent, PendingUpdateEvent, AfterUpdateEvent} from './core/SnippetHandler';
export type {InteractionEvent} from './core/UIHandler';

export type {HistoryState} from './core/HistoryHandler';
export type {Extension, Options, Payload} from './Naja';

export {Naja, HttpError} from './Naja';
export default naja;

0 comments on commit 00c3bbc

Please sign in to comment.