| 23 | // above) so a source-linked consumer can disable them in linked mode. |
| 24 | |
| 25 | interface Array<T> { |
| 26 | // Conditional return instead of a `this`-typed overload: a `this` overload |
| 27 | // is selected-then-rejected on union-of-array receivers (TS2684), poisoning |
| 28 | // foreign code like `(readonly A[] | readonly B[]).map(...)`. A single |
| 29 | // conditional-return signature refines NonEmpty without a `this` param. |
| 30 | map<U>( |
| 31 | callbackfn: (value: T, index: number, array: T[]) => U, |
| 32 | thisArg?: any |
| 33 | ): this extends NonEmptyArray<any> ? NonEmptyArray<U> : U[] |
| 34 | } |
| 35 | interface ReadonlyArray<T> { |
| 36 | // Subsequent property declarations must have the same type. Property 'length' must be of type 'number', but here has type 'NonNegativeInt'. |
| 37 | // readonly length: NonNegativeInt |
no outgoing calls
no test coverage detected
searching dependent graphs…