top | item 23991831

(no title)

frewsxcv | 5 years ago

If something is untyped in Sorbet, you can give it a type with `T.let`. So if the return value of function `foo` is untyped, but you have a high degree of confidence that it will return a `String`, you can do `ret = T.let(foo, String)`

discuss

order

No comments yet.