type alias Initimport { type Init } from "https://deno.land/x/fonction@v2.1.0-beta.4/common/init.ts"; Infer the init types. ExamplesExample 1 // String Init<string> // string Init<''> // '' Init<'hello'> // 'hell' Example 2 // Array Init<[] | never[] | readonly [] | readonly never[]> // [] Init<['hello']> // [] Init<['hello', 'world']> // ['hello'] Type ParametersT extends string | readonly unknown[]definition: T extends string ? InitString<T> : T extends readonly [...infer I, unknown] ? I : T