This file documents the transformations that are applied to the datatypes.
- Download TS types from lemmy-js-client
- Filters out the types that are not used in the API
- Convert TS to Kotlin using Dukat
- It loops over the lines of converted datatypes
- Drops the first 15 dukat imports
- Convert the interfaces to data class
- Adds default null to nullable types
- Add missing commas
- Replaces vars with vals
- Replace Arrays with Lists
- Converts numbers to Longs except if they are in a manual
int
list - Replaces
my_vote
default - Replaces types that should be prebuilt enums
- Adds imports
- Adds above line level steps
- Adds missing last newline
- Remove remnants