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

Function tagged

packages/effect/src/Request.ts:337–342  ·  view source on GitHub ↗
(
  tag: R["_tag"]
)

Source from the content-addressed store, hash-verified

335 * @since 2.0.0
336 */
337export const tagged = <R extends Request<any, any, any> & { _tag: string }>(
338 tag: R["_tag"]
339): Constructor<R, "_tag"> =>
340(args) => {
341 return Object.setPrototypeOf({ ...(args as R), _tag: tag }, RequestPrototype)
342}
343
344/**
345 * Defines request types with TypeScript classes.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected