-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
actionview: signature updates #738
actionview: signature updates #738
Conversation
@hjwylde Thanks for your contribution! Please follow the instructions below for each change. Available commandsYou can use the following commands by commenting on this PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVE
# Hello world! | ||
# <% end -%> | ||
# # => <div class="strong">Hello world!</div> | ||
def content_tag: (untyped name, ?untyped? content_or_options_with_block, ?untyped? options, ?bool escape) ?{ () -> untyped } -> untyped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# | ||
# If no options hash is passed or :update specified, the default is to render a partial and use the second parameter | ||
# as the locals hash. | ||
def render: (?::Hash[untyped, untyped] options, ?::Hash[untyped, untyped] locals) ?{ () -> untyped } -> untyped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# raw('Accept <a href="/terms">Terms</a>.') | ||
# end | ||
# # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label> | ||
def label: (untyped object_name, untyped method, ?untyped? content_or_options, ?untyped? options) ?{ () -> untyped } -> untyped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# raw('Accept <a href="/terms">Terms</a>.') | ||
# end | ||
# # => <label for="post_terms">Accept <a href="/terms">Terms</a>.</label> | ||
def label: (untyped method, ?untyped? text, ?::Hash[untyped, untyped] options) ?{ () -> untyped } -> untyped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# # <strong>Ask me!</strong> | ||
# # </button> | ||
# | ||
def button: (?untyped? value, ?::Hash[untyped, untyped] options) ?{ () -> untyped } -> untyped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/merge |
Split from #735 to be smaller. Type signature updates for invalid signatures in actionview, due to blocks being marked as required, but they should be optional.