Skip to content

The open alternative to Salesforce, designed for AI.

316 B
Raw Blame
import { type InputSelectionDirection } from '@/types/InputSelectionDirection';

const INPUT_SELECTION_DIRECTIONS = new Set<unknown>([
  'forward',
  'backward',
  'none',
]);

export const isInputSelectionDirection = (
  value: unknown,
): value is InputSelectionDirection => INPUT_SELECTION_DIRECTIONS.has(value);