Skip to content

Commit

Permalink
Added missing index exports and type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei15193 committed Jun 24, 2024
1 parent 1ce644c commit b283f6c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
19 changes: 17 additions & 2 deletions src/collections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,20 @@ export {

type ISetLike,
type IReadOnlyObservableSet,
type IObservableSet
} from './observableSet';
type IObservableSet,

ReadOnlyObservableSet,
ObservableSet,
isSetLike
} from './observableSet';

export {
type INotifyMapChanged,
type IMapChangedEvent,
type IMapChangedEventHandler,
type IMapChange,
type MapChangeOperation,

type IReadOnlyObservableMap,
type IObservableMap
} from './observableMap';
11 changes: 11 additions & 0 deletions src/collections/observableMap/IMapChangedEventHandler.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { IEventHandler } from "../../events";
import type { IMapChange } from "./IMapChange";

/**
* A specialized interface for handling map changed events.
* @template TSubject The type of object that raises the event.
* @template TKey The type of keys the map contains.
* @template TItem The type of items the map contains.
*/
export interface IMapChangedEventHandler<TSubject, TKey, TItem> extends IEventHandler<TSubject, IMapChange<TKey, TItem>> {
}
7 changes: 7 additions & 0 deletions src/collections/observableMap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export type { IMapChange, MapChangeOperation } from './IMapChange';
export type { INotifyMapChanged } from './INotifyMapChanged';
export type { IMapChangedEvent } from './IMapChangedEvent';
export type { IMapChangedEventHandler } from './IMapChangedEventHandler';

export type { IReadOnlyObservableMap } from './IReadOnlyObservableMap';
export type { IObservableMap } from './IObservableMap';
4 changes: 3 additions & 1 deletion src/collections/observableSet/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
export type { ISetChange, SetChangeOperation } from './ISetChange';
export type { INotifySetChanged } from './INotifySetChanged';
export type { ISetChangedEvent } from './ISetChangedEvent';
export type { ISetChangedEventHandler } from './ISetChangedEventHandler';
export type { ISetChange, SetChangeOperation } from './ISetChange';

export type { ISetLike } from './ISetLike';
export type { IReadOnlyObservableSet } from './IReadOnlyObservableSet';
export type { IObservableSet } from './IObservableSet';

export { ReadOnlyObservableSet } from './ReadOnlyObservableSet';
export { ObservableSet } from './ObservableSet';
export { isSetLike } from './isSetLike';

0 comments on commit b283f6c

Please sign in to comment.