Skip to content

Commit 1208d55

Browse files
nichothai
authored andcommitted
export more types (#56)
* export more types * fix exports -- see #56
1 parent b957f6b commit 1208d55

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ export {
1616
Action,
1717
actionEvents,
1818
AnyAction,
19+
Criteria,
1920
ID,
2021
Log,
2122
LogPage,
2223
LogStore,
23-
Meta
24+
Meta,
25+
ReadonlyListener
2426
} from './log/index.js'
2527
export { LoguxError, LoguxErrorOptions } from './logux-error/index.js'
2628
export { MemoryStore } from './memory-store/index.js'

log/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface PreaddListener<ListenerAction extends Action, LogMeta extends Meta> {
1313
(action: ListenerAction, meta: LogMeta): void
1414
}
1515

16-
interface ReadonlyListener<
16+
export interface ReadonlyListener<
1717
ListenerAction extends Action,
1818
LogMeta extends Meta
1919
> {
@@ -82,7 +82,7 @@ export interface AnyAction {
8282
type: string
8383
}
8484

85-
interface Criteria {
85+
export interface Criteria {
8686
/**
8787
* Remove reason only for action with `id`.
8888
*/

0 commit comments

Comments
 (0)