Skip to content

SyncResult — @gj-kit/expo-workouts

A public type from @gj-kit/expo-workouts/core. The signature below is taken directly from the 0.1.1 release declaration.

import { SyncResult } from '@gj-kit/expo-workouts/core';
/**
* Discriminated on `reset`, so `resetReason` is unreachable without narrowing and unforgettable when
* present. `const b: boolean = result.reset` still compiles, so this stays read-compatible with the
* mission's `reset: boolean` sketch at every call site.
*/
type SyncResult = (SyncPage & {
readonly reset: false;
}) | (SyncPage & {
readonly added: readonly [
];
readonly removed: readonly [
];
readonly hasMore: false;
readonly reset: true;
readonly resetReason: CursorResetReason;
});

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-workouts
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub