MCPcopy Create free account
hub / github.com/middleapi/orpc / resolveMaybeOptionalOptions

Function resolveMaybeOptionalOptions

packages/shared/src/args.ts:5–7  ·  view source on GitHub ↗
(rest: MaybeOptionalOptions<T>)

Source from the content-addressed store, hash-verified

3 : [options: TOptions]
4
5export function resolveMaybeOptionalOptions<T>(rest: MaybeOptionalOptions<T>): T {
6 return rest[0] ?? {} as T // 0 only undefined when all fields are optional
7}

Callers 15

constructorMethod · 0.90
createFormActionFunction · 0.90
args.test.tsFile · 0.90
itemFunction · 0.90
callFunction · 0.90
createRouterClientFunction · 0.90
createProcedureClientFunction · 0.90
handleMethod · 0.90
handleMethod · 0.90
messageMethod · 0.90
handleMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected