mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

Aral Balkan

This took me way too long to figure out…

If your function takes a parameter object and uses spread syntax to collect arbitrary additional properties (rest) and you want to document it using , the syntax is:

[p:string]:any

e.g.,

```js
/**
@param {{
state: import('./SetupState.script.js').default,
[p:string]:any
}} parameterObject
@returns {string|string[]} html
*/
export default ({state, ...props}) => html`…`
```

Solution by Alexander Lonberg stackoverflow.com/a/68567492

Stack OverflowHow to describe other unknown properties in JSDocFor function below how to express that parameter foo must have property bar of type number but it can also have other properties. I'd expect that ??? in snippet below can be replaced with meaningful