Skip to content

Commit

Permalink
fix: too strict type
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Mar 6, 2024
1 parent 5d6a95a commit 1d740d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/violet-dancers-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rdfjs-elements/lit-helpers': patch
---

The `fallback` parameter of `localizedLabel` should allow any type and let lit render it
2 changes: 1 addition & 1 deletion packages/lit-helpers/localizedLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class LocalizedLabelDirective extends Directive {
* @param {PointerLike} resource
* @param {object} [options]
* @param {import('@rdfjs/types').NamedNode | Array<import('@rdfjs/types').NamedNode>} [options.property]
* @param {string} [options.fallback]
* @param {*} [options.fallback]
* @returns {string|*}
*/
render(resource, { property = rdfs.label, fallback = '' } = {}) {
Expand Down

0 comments on commit 1d740d7

Please sign in to comment.