UNPKG

@es-shims/api

Version:

Loosely test a package's compliance with the es-shim API

12 lines (9 loc) 254 B
'use strict'; /** @type {[unknown, unknown[]][]} */ const calls = []; /** @type {{ calls: typeof calls } & ((this: unknown) => void)} */ const shim = function fakeShim(...args) { calls.push([this, args]); }; shim.calls = calls; module.exports = shim;