You need to find an equivalent way to implement the features of the gem in Crystal. In some cases it’s not going to be as simple as copy the Ruby code over and add types. I’m sure there’s a way to implement the core feature you’re wanting in Crystal, even if the underlying implementation is different from the Ruby version.