Skip to content

Commit

Permalink
better deprecated message format
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeOberti committed Jan 11, 2024
1 parent 4906694 commit 3a83646
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,26 @@ export const getTimelineShowStatusByIdSelector = () =>
changed: timeline?.changed ?? false,
}));

// deprecated
/**
* @deprecated
*/
const timelineByIdState = (state: State): TimelineById => state.timeline.timelineById;

const selectCallOutUnauthorizedMsg = (state: State): boolean =>
state.timeline.showCallOutUnauthorizedMsg;

// deprecated, prefer using selectTimelineById below
/**
* @deprecated prefer using selectTimelineById below
*/
export const selectTimeline = (state: State, timelineId: string): TimelineModel =>
state.timeline.timelineById[timelineId];

export const selectInsertTimeline = (state: State): InsertTimeline | null =>
state.timeline.insertTimeline;

// deprecated, prefer using selectTimelineById below
/**
* @deprecated prefer using selectTimelineById below
*/
export const timelineByIdSelector = createSelector(
timelineByIdState,
(timelineById) => timelineById
Expand Down

0 comments on commit 3a83646

Please sign in to comment.