3 ms·
TS has a way to attach type annotations (.d.ts files) on top of existing JS code base, thus allowing for gradual migration and relatively peaceful coexistence.
by nine_k 4y ago
TS has a way to attach type annotations (.d.ts files) on top of existing JS code base, thus allowing for gradual migration and relatively peaceful coexistence. Same with Python: you can add type definitions on top of existing untyped code, as a separate package. In either case, types can be provided by a third party, e.g. yourself if you want to use a particular library and it still lacks typing support.
Does Sorbet offer something comparable? That would make adoption easier.
- dragonwriter 4y ago> Does Sorbet offer something comparable? Yes, RBI files.