@saync/core
v0.1.1
Published
Framework-agnostic core for Saync — contract types, expectation registry, and flow definitions.
Downloads
239
Maintainers
Readme
@saync/core
Framework-agnostic core for Saync — contract types, the expectation registry, and the defineFlow helper.
Most users install saync-web and get this as a transitive dependency; you'll only depend on it directly if you're writing a non-React SDK integration.
import { defineFlow } from '@saync/core';
export default [
defineFlow({
name: 'checkout',
steps: [
{ kind: 'interact', target: 'add-to-cart' },
{ kind: 'expect', target: 'cart-count', text: '1' },
],
}),
];MIT licensed.
