Skip to content
0

katanakit-js / MutationKey

Type Alias: MutationKey ​

ts
type MutationKey = Register extends {
  mutationKey: infer TMutationKey;
} ? TMutationKey extends ReadonlyArray<unknown> ? TMutationKey : TMutationKey extends unknown[] ? TMutationKey : ReadonlyArray<unknown> : ReadonlyArray<unknown>;

Defined in: node_modules/.bun/@tanstack+query-core@5.104.1/node_modules/@tanstack/query-core/build/modern/hydration-B9t5w6NC.d.ts:2540

The type of a mutation key — the serializable array used to identify and filter mutations. Defaults to ReadonlyArray<unknown>; declare mutationKey on Register to narrow it repository-wide.

Released under the MIT License.