Same as #560, except that since v2 ships with type declarations, creating this issue in this repo makes sense now.