Skip to content

Add missing exports #542

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

Merged
merged 4 commits into from
May 16, 2025
Merged

Add missing exports #542

merged 4 commits into from
May 16, 2025

Conversation

nikrooz
Copy link
Contributor

@nikrooz nikrooz commented May 16, 2025

Adding the missing exports caught by #541

Signed-off-by: Nik Nasr <[email protected]>
@nikrooz nikrooz requested a review from igalshilman May 16, 2025 09:14
"@restatedev/restate-sdk-core": "^1.5.4",
"@restatedev/restate-sdk": "^1.5.4",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were missing @restatedev/restate-sdk as a dependency because we use endpoint from this package. Since all the types we needed from @restatedev/restate-sdk-core are available in @restatedev/restate-sdk, I removed the former.

Comment on lines -14 to +22
import * as restate from "@restatedev/restate-sdk";
import * as core from "@restatedev/restate-sdk-core";
import { endpoint, serde } from "@restatedev/restate-sdk";
import type {
TypedState,
UntypedState,
Serde,
RestateEndpoint,
VirtualObjectDefinition,
WorkflowDefinition,
} from "@restatedev/restate-sdk";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Importing with import * as restate from "@restatedev/restate-sdk" is vague because it does not specify which parts of @restatedev/restate-sdk will be used. Therefore, api-extractor requires exporting the entire restate, which is why I used named imports here.

Screenshot 2025-05-16 at 09 53 33

nikrooz added 2 commits May 16, 2025 10:19
Signed-off-by: Nik Nasr <[email protected]>
Signed-off-by: Nik Nasr <[email protected]>
Copy link

github-actions bot commented May 16, 2025

Test Results

  7 files  ±0    7 suites  ±0   4m 29s ⏱️ +54s
 54 tests ±0   53 ✅ ±0  1 💤 ±0  0 ❌ ±0 
223 runs  ±0  220 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit b4b8c42. ± Comparison against base commit 6ef04ac.

♻️ This comment has been updated with latest results.

Signed-off-by: Nik Nasr <[email protected]>
@nikrooz nikrooz merged commit 6585d9e into main May 16, 2025
3 checks passed
@nikrooz nikrooz deleted the NN_add-missing-exports branch May 16, 2025 10:25
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.

2 participants