MV-GH / LemmyBackwardsCompatibleAPI

Kotlin multiplatform Backward compatible Lemmy API
GNU Affero General Public License v3.0
4 stars 1 forks source link

Use long for expires type #24

Closed MV-GH closed 5 months ago

dessalines commented 5 months ago

https://github.com/LemmyNet/lemmy-js-client/blob/main/copy_generated_types_from_lemmy.sh#L31

Is the unfortunate hack we use to convert the BigInt generated by the lemmy back end, to numbers. IMO there are so few ints vs longs, that you might as well just use long everywhere in this api client.

MV-GH commented 5 months ago

I'll take that approach then