MCPcopy Index your code
hub / github.com/codeaashu/claude-code / unwrapDefault

Function unwrapDefault

src/tools/FileReadTool/imageProcessor.ts:90–94  ·  view source on GitHub ↗
(
  mod: MaybeDefault<T>,
)

Source from the content-addressed store, hash-verified

88type MaybeDefault<T> = T | { default: T }
89
90function unwrapDefault<T extends (...args: never[]) => unknown>(
91 mod: MaybeDefault<T>,
92): T {
93 return typeof mod === 'function' ? mod : mod.default
94}
95

Callers 2

getImageProcessorFunction · 0.85
getImageCreatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected