type alias Tailimport { type Tail } from "https://deno.land/x/fonction@v2.1.0-beta.4/common/tail.ts"; Infer the tail types. ExamplesExample 1 // String Tail<string> // string Tail<''> // '' Tail<'a'> // '' Tail<'hello'> // 'ello' Example 2 // Array Tail<[] | never[] | readonly [] | readonly never[]> // [] Tail<['hello']> // [] Tail<['hello', 'world']> // ['world'] Type ParametersT extends string | readonly unknown[]definition: T extends string ? T extends `${string}${infer R}` ? R : T extends "" ? "" : string : T extends readonly [unknown, ...infer R] ? R : T