import { Predicate, Primitive } from '../types' export const literal = (input: T): Predicate => (value: unknown): value is T => input === value