MCPcopy Create free account
hub / github.com/Effect-TS/effect / outputParam

Function outputParam

packages/sql/mssql/src/Procedure.ts:164–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 * @since 4.0.0
163 */
164export const outputParam = <A>() =>
165<N extends string, T extends DataType>(
166 name: N,
167 type: T,
168 options?: ParameterOptions
169) =>
170<
171 I extends Record<string, Parameter.Parameter<any>>,
172 O extends Record<string, Parameter.Parameter<any>>
173>(
174 self: Procedure<I, O>
175): Procedure<I, Simplify<O & { [K in N]: Parameter.Parameter<A> }>> => ({
176 ...self,
177 outputParams: {
178 ...self.outputParams,
179 [name]: Parameter.make(name, type, options)
180 }
181})
182
183/**
184 * Sets the expected row type for a SQL Server stored procedure definition.

Callers

nothing calls this directly

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected