()
| 526 | Success, |
| 527 | Error |
| 528 | > = (): any => |
| 529 | ( |
| 530 | name: string, |
| 531 | options: { |
| 532 | readonly args?: Schema.Top | Schema.Struct.Fields | undefined |
| 533 | readonly success: Schema.Top |
| 534 | readonly error?: Schema.Top | undefined |
| 535 | readonly staleTime: Duration.Input |
| 536 | readonly idleTimeToLive?: Duration.Input | undefined |
| 537 | readonly refetchInterval?: RefetchInterval<any, any, any> | undefined |
| 538 | readonly tags?: ReadonlyArray<Tag> | undefined |
| 539 | readonly persist?: boolean | undefined |
| 540 | readonly reactivityKeys?: ((args: any) => Reactivity.KeysInput) | undefined |
| 541 | readonly server?: boolean | undefined |
| 542 | } |
| 543 | ): any => { |
| 544 | const def = makeDef(name, options) |
| 545 | const QueryService = queryClass(def) |
| 546 | return class extends QueryService { |
| 547 | static set(args: unknown, value: unknown) { |
| 548 | return write(QueryService, args, value) |
| 549 | } |
| 550 | } |
| 551 | } |
| 552 | |
| 553 | /** |
| 554 | * The class every query is: the fetcher's service, its `toLayer` and the |
nothing calls this directly
no test coverage detected