diff options
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/reference/types.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/reference/types.md b/docs/src/reference/types.md index 13ca8720..715427f3 100644 --- a/docs/src/reference/types.md +++ b/docs/src/reference/types.md @@ -604,6 +604,13 @@ field does not exist or fails with an error if no default value was specified. A default value to return if the field does not exist. - returns: any +### fields() +Return the fields of this content. + +```example +#repr(rect(width: 10cm, height: 10cm).fields()) +``` + ### location() The location of the content. This is only available on content returned by [query]($func/query), for other content it will fail with an error. The |
