/**
- * @typedef {object} Logger Logger interface for diagnostic output. Compatible with `console` and
+ * @typedef {Object} Logger Logger interface for diagnostic output. Compatible with `console` and
* most logging libraries.
* @property {(...args: unknown[]) => void} [debug] Logs verbose diagnostic information.
* @property {(...args: unknown[]) => void} [info] Logs informational messages.
*/
/**
- * @typedef {{[key:string]:string|undefined}} Env A simple null prototype object dictionary to map environment
+ * @typedef {Record<string,string|undefined>} Env A simple null prototype object dictionary to map environment
* variable names to values.
*/
const prf = Uint8Array.fromHex('deadbeef000000000000000000000000000000000000000000000000cafebabe');
const options = {
method: 'POST',
- headers: /** @type {{[key:string]:string}} */({
+ headers: /** @type {Record<string,string>} */({
'Content-Type': 'application/octet-stream',
'Origin': origin,
'Sec-Fetch-Site': 'same-origin',