Alias the ${number} ${'<' | '>'} ${number} type:
import { type Alias } from '@sgrud/core';
type Helper = Alias<`${number} ${'<' | '>'} ${number}`>;
const negative: Helper = '-01 < +0.1'; // negative: Helper
const positive: Helper = 'one is > 0'; // not assignable to type 'Helper'
Generated using TypeDoc
Type helper Aliasing any provided
Type. By looping aType through this Alias type helper, the dereferencing of thisType is prohibited. Use this helper to, e.g., force a string literal type to be treated as an unique type and not to be dereferenced.