Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments passed to applyAction allows additional props which are not accepted by Actions #1093

Open
cacabo opened this issue Jan 13, 2025 · 0 comments

Comments

@cacabo
Copy link

cacabo commented Jan 13, 2025

Calling applyAction allows additional args in the typescript SDK. ideally this would be a type error, since the actions API does not accept extra args. I can get around this by using satisfies:

$(applySchedulingGridChanges).applyAction({
    department: departmentId,
    installationConfig: '1',
    jsonPayload: selectPayload(gridRef.current.shifts, editedShifts),
} satisfies applySchedulingGridChanges.Params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant