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

Using auto-generated types from ts-rs. #1003

Merged
merged 3 commits into from
May 11, 2023
Merged

Conversation

dessalines
Copy link
Member

@dessalines dessalines commented May 10, 2023

Notes:

  • Changed a lot of number types to bigint. This is the official type from rust, so it unfortunately added some boilerplate.
  • Imports aren't that clean, but IDE support should take care of that.

- Fixes #998
- Added support for new `GetFederatedInstances`
- Fixed a few bugs in the process.
@@ -1,6 +1,6 @@
import { Component } from "inferno";
import { NavLink } from "inferno-router";
import { GetSiteResponse } from "lemmy-js-client";
import { GetSiteResponse } from "lemmy-js-client/dist/types/GetSiteResponse";
Copy link
Member

Choose a reason for hiding this comment

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

Can the types not be imported from just lemmy-js-client?

Copy link
Member

Choose a reason for hiding this comment

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

@dessalines I made a PR for the js client that should get rid of the need for these individual imports: LemmyNet/lemmy-js-client#118.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I'll make this a draft until I fix up the imports.

@dessalines dessalines marked this pull request as draft May 11, 2023 17:24
@dessalines dessalines marked this pull request as ready for review May 11, 2023 18:13
@dessalines dessalines merged commit c5fd084 into main May 11, 2023
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.

Upgrade to new lemmy-js-client types
2 participants