Skip to content

Instantly share code, notes, and snippets.

@darrenmothersele
Created December 20, 2018 15:11
Show Gist options
  • Save darrenmothersele/09facb8ea4e293a1ae859d231495e400 to your computer and use it in GitHub Desktop.
Save darrenmothersele/09facb8ea4e293a1ae859d231495e400 to your computer and use it in GitHub Desktop.
import { unionize, ofType } from 'unionize';
import { Task } from './interfaces/task.interface';
export const TodoActions = unionize({
NewTask: ofType<Task>(),
ToggleTask: ofType<{ id: string }>(),
ClearCompleted: {}
}, { tag: 'type', value: 'payload' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment