( tag: Tag )
| 407 | * @since 2.0.0 |
| 408 | */ |
| 409 | export const TaggedClass = <Tag extends string>( |
| 410 | tag: Tag |
| 411 | ): new<A extends Record<string, any>, Success, Error = never, Services = never>( |
| 412 | args: Types.Equals<Omit<A, keyof Request<unknown, unknown>>, {}> extends true ? void |
| 413 | : { readonly [P in keyof A as P extends "_tag" | keyof Request<any, any, any> ? never : P]: A[P] } |
| 414 | ) => Request<Success, Error, Services> & Readonly<A> & { readonly _tag: Tag } => { |
| 415 | return class TaggedClass extends Class<any, any, any> { |
| 416 | readonly _tag = tag |
| 417 | } as any |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * Completes a request entry with the provided result. |
nothing calls this directly
no outgoing calls
no test coverage detected