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: JS/TS access to snapshot properties #457

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Fix: JS/TS access to snapshot properties #457

merged 1 commit into from
Feb 20, 2024

Conversation

Whathecode
Copy link
Member

The properties id, createdOn, and version of snapshots couldn't be accessed through JS/TypeScript since they were defined on a base Snapshot interface which couldn't be JS exported from Kotlin due to an unsupported Instant type.

But, by suppressing a warning the base Snapshot interface can in fact be exported, and the resulting TypeScript code compiles since the custom build pipeline already modifies generated TypeScript sources to support Instant.

Closes #454

The properties `id`, `createdOn`, and `version` of snapshots couldn't be accessed through JS/TypeScript since they were defined on a base `Snapshot` interface which couldn't be JS exported from Kotlin due to an unsupported `Instant` type.

But, by suppressing a warning the base `Snapshot` interface can in fact be exported, and the resulting TypeScript code compiles since the custom build pipeline already modifies generated TypeScript sources to support `Instant`.
@Whathecode Whathecode requested a review from jakdan99 February 18, 2024 15:20
@Whathecode Whathecode merged commit e41e556 into develop Feb 20, 2024
3 checks passed
@Whathecode Whathecode deleted the fix-451 branch February 20, 2024 15:50
@Whathecode Whathecode mentioned this pull request Mar 18, 2024
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.

Inherited properties are missing from StudyProtocolSnapshot TS class
2 participants