( tag: R["_tag"] )
| 335 | * @since 2.0.0 |
| 336 | */ |
| 337 | export 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. |
nothing calls this directly
no outgoing calls
no test coverage detected