Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/contentlayerdev/contentlayer
/
Class
packages/@contentlayer/utils/src/single-item.ts:1–1 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
export
class
SingleItem<T> {
2
constructor(public item: T) {}
3
4
map<U>(fn: (item: T) => U): SingleItem<U> {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected