import { Operation, Wrapper, isOfKind, coreNamespace } from './operation' const kind = `${coreNamespace}/next` export interface NextOperation extends Wrapper { terminal?: true } export function next(operation: T): NextOperation { return { kind, operation } } export function delegate(operation: T): NextOperation { return { kind, operation, terminal: true } } export const isNext = isOfKind>(kind)