Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
6
export
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.ts
File · 0.90
extendTaggedUnionWithTags
Function · 0.90
numbers.ts
File · 0.90
ext.ts
File · 0.90
moreStrings.ts
File · 0.90
prefixedStringId
Function · 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…