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

Fix migration and migration status typings. #747

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

fisehara
Copy link
Contributor

Change-type: patch

@fisehara fisehara requested review from Page- and thgreasi March 21, 2024 14:58
@flowzone-app flowzone-app bot enabled auto-merge March 21, 2024 15:05
return sbvrUtils.sbvrTypes.JSON.fetchProcessing(data.executed_migrations);
return sbvrUtils.sbvrTypes.JSON.fetchProcessing(
data.executed_migrations,
) as string[];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this cast necessary? Can it be satisfies instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Page-
No as it doesn't satisfy.
Also a type guard isn't working with the current typings and typescript inferencing capabilities.
Left a comment and leave it as a cast.

Change-type: patch
Signed-off-by: Harald Fischer <harald@balena.io>
@flowzone-app flowzone-app bot merged commit 9eb0a58 into master Apr 2, 2024
50 checks passed
@flowzone-app flowzone-app bot deleted the fisehara/fix-migration-typings branch April 2, 2024 12:38
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

Successfully merging this pull request may close these issues.

3 participants