Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arktypeio/arktype
/ pin
Method
pin
ark/util/weak.ts:27–30 ·
view source on GitHub ↗
(key: string, value: v)
Source
from the content-addressed store, hash-verified
25
}
26
27
pin(key: string, value: v): v {
28
this.refs.set(key, { deref: () => value })
29
return
value
30
}
31
32
delete(key: string): boolean {
33
return
this.refs.delete(key)
Callers
2
set
Method · 0.95
registerParseContext
Function · 0.80
Calls
1
set
Method · 0.45
Tested by
no test coverage detected