document function

pull/10320/head
S. Elliott Johnson 6 months ago
parent d7dac4eac2
commit 79536e4875

@ -1974,6 +1974,12 @@ export function thunkspread(iterable) {
}
/**
* This is meant to proxy the `...rest` parameter to a snippet function. Basically,
* this array will be full of functions that need to be invoked to unwrap their value.
* We have no way of forcing that invocation in all circumstances -- for example, if
* a user passes the rest array to a function that then accesses it via `rest[0]`, we
* would need to transform that into `rest[0]()`. That's effectively what this proxy does.
*
* @template {unknown[]} T
* @param {T} items
* @returns {T}

Loading…
Cancel
Save