When validating the function input, TS can look at the current string and based on that, suggest suffixes that result in a valid path. This is what allows @arktype.io to efficiently given completions for arbitrary expressions that would be impossible to precompute
1 likes 0 replies
?