Skip to content

Commit

Permalink
Document :fun and {:fun, arity} type supported by attr/3 (#3635)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwjlyons authored Jan 14, 2025
1 parent 4835a51 commit 208d566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/phoenix_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,8 @@ defmodule Phoenix.Component do
| `:float` | any float |
| `:list` | any list of any arbitrary types |
| `:map` | any map of any arbitrary types |
| `:fun` | any function |
| `{:fun, arity}` | any function of arity |
| `:global` | any common HTML attributes, plus those defined by `:global_prefixes` |
| A struct module | any module that defines a struct with `defstruct/1` |
Expand Down

0 comments on commit 208d566

Please sign in to comment.