© 2026 Hedgehog Software, LLC
const myFunc = (v: string) => true; const MyString = type("50<string<200").narrow((s) => myFunc(s));
error TS2345: Argument of type 'is<MoreThanLength<50> & LessThanLength<200>>' is not assignable to parameter of type 'string'.
pipe
narrow
const myFunc = (v: string) => true; const MyString = type("50<string<200").pipe((s) => s).narrow((s) => myFunc(s));