Skip to content
Merged
Changes from all commits
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
1 change: 1 addition & 0 deletions src/patch-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export { UndoRedoManager } from './command/UndoRedoManager';
export { Command } from './command/commands/base';
export { default as Transformer } from './transformer/Transformer';
export { default as State, PROPAGATE_EVENT } from './events/states/State';
export { selector } from './utils/selector/selector';

Choose a reason for hiding this comment

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

medium

For consistency with how other utilities are exported, it would be better to add the selector export to src/utils/index.js. This file (src/patch-map.ts) already has export * from './utils', which would then automatically export selector. This approach centralizes all utility exports in one place and keeps this top-level export file cleaner and focused on major components.

export * from './utils';