MCPcopy Create free account
hub / github.com/effect-app/libs / Array

Interface Array

packages/effect-app/src/builtin.ts:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

RequestContextMapClass · 0.50
RequestContextMapClass · 0.50
insertSortedFunction · 0.50

Implementers 4

Getterrepos/effect/packages/effect/src/Schem
ReadonlyRefImplrepos/effect/packages/effect/src/unsta
MapRefImplrepos/effect/packages/effect/src/unsta
PropRefImplrepos/effect/packages/effect/src/unsta

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…