We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
switch
Say we have the following typescript:
let reducer: Reducer<AppState> = (state: AppState, action: Action): AppState => { switch (action.type) { case 'ADD_MESSAGE': return { messages: state.messages.concat( (<AddMessageAction>action).message ), }; case 'DELETE_MESSAGE': let idx = (<DeleteMessageAction>action).index; return { messages: [ ...state.messages.slice(0, idx), ...state.messages.slice(idx + 1, state.messages.length) ] }; default: return state; } };
What query captures the DELETE_MESSAGE case, upto but not including default?
DELETE_MESSAGE
case
default
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Say we have the following typescript:
What query captures the
DELETE_MESSAGE
case
, upto but not includingdefault
?The text was updated successfully, but these errors were encountered: