You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules/@detachhead/ts-helpers/dist/types/Array.d.ts:90:254 - error TS2344: Type 'IndexOfLongestString<Array>' does not satisfy the constraint 'Index<Array>'.
Type 'number | undefined' is not assignable to type 'Index<Array>'.
Type 'undefined' is not assignable to type 'Index<Array>'.
90 type SortLongestStringsTailRec<Array extends readonly string[], Result extends string[]> = Or<Extends<Array, TupleOfUpTo<string, 1>> | Extends<number, Array['length']>> extends true ? [...Result, ...Array] : SortLongestStringsTailRec<RemoveIndex<Array, IndexOfLongestString<Array>>, [
~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@detachhead/ts-helpers/dist/types/Array.d.ts:90:284 - error TS2344: Type '[...Result, Array[IndexOfLongestString<Array>]]' does not satisfy the constraint 'string[]'.
Type 'Array[IndexOfLongestString<Array>] | Result[number]' is not assignable to type 'string'.
Type 'Array[IndexOfLongestString<Array>]' is not assignable to type 'string'.
Type 'Array[undefined] | Array[number]' is not assignable to type 'string'.
Type 'Array[undefined]' is not assignable to type 'string'.
90 type SortLongestStringsTailRec<Array extends readonly string[], Result extends string[]> = Or<Extends<Array, TupleOfUpTo<string, 1>> | Extends<number, Array['length']>> extends true ? [...Result, ...Array] : SortLongestStringsTailRec<RemoveIndex<Array, IndexOfLongestString<Array>>, [
~
91 ...Result,
~~~~~~~~~~~~~~
92 Array[IndexOfLongestString<Array>]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
93 ]>;
~
node_modules/@detachhead/ts-helpers/dist/types/Array.d.ts:92:5 - error TS2536: Type 'IndexOfLongestString<Array>' cannot be used to index type 'Array'.
92 Array[IndexOfLongestString<Array>]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@detachhead/ts-helpers/dist/types/String.d.ts:183:1 - error TS2578: Unused '@ts-expect-error' directive.
183 /** @ts-expect-error -- TODO: figure out what causes this, its a stack depth error which is apparently very dangerous to suppress */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@detachhead/ts-helpers/dist/types/String.d.ts:200:53 - error TS2536: Type 'IndexOfLongestString<ListOf<Strings>>' cannot be used to index type 'ListOf<Strings>'.
200 export type LongestString<Strings extends string> = ListOf<Strings>[IndexOfLongestString<ListOf<Strings>>];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 5 errors in 2 files.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: