Just changed `name` to `type` in these function signatures for consistency with the token object.