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

Function extendM

packages/effect-app/src/utils/extend.ts:6–9  ·  view source on GitHub ↗
(a: T, ext: (a: T) => X)

Source from the content-addressed store, hash-verified

4}
5
6export const extendM = <T extends {}, X extends {}>(a: T, ext: (a: T) => X) => {
7 Object.assign(a, ext(a))
8 return a as typeof a & X
9}

Callers 6

ids.tsFile · 0.90
numbers.tsFile · 0.90
ext.tsFile · 0.90
moreStrings.tsFile · 0.90
prefixedStringIdFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…