This commit is contained in:
2024-03-22 03:47:51 +05:30
parent 8bcf3d211e
commit 89819f6fe2
28440 changed files with 3211033 additions and 2 deletions

2
node_modules/unified/lib/callable-instance.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export const CallableInstance: new <Parameters_1 extends unknown[], Result>(property: string | symbol) => (...parameters: Parameters_1) => Result;
//# sourceMappingURL=callable-instance.d.ts.map

1
node_modules/unified/lib/callable-instance.d.ts.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"callable-instance.d.ts","sourceRoot":"","sources":["callable-instance.js"],"names":[],"mappings":"AAAA,sFAEsE,MAAM,GAAG,MAAM,6CAoClF"}

39
node_modules/unified/lib/callable-instance.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
export const CallableInstance =
/**
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
*/
(
/** @type {unknown} */
(
/**
* @this {Function}
* @param {string | symbol} property
* @returns {(...parameters: Array<unknown>) => unknown}
*/
function (property) {
const self = this
const constr = self.constructor
const proto = /** @type {Record<string | symbol, Function>} */ (
// Prototypes do exist.
// type-coverage:ignore-next-line
constr.prototype
)
const func = proto[property]
/** @type {(...parameters: Array<unknown>) => unknown} */
const apply = function () {
return func.apply(apply, arguments)
}
Object.setPrototypeOf(apply, proto)
const names = Object.getOwnPropertyNames(func)
for (const p of names) {
const descriptor = Object.getOwnPropertyDescriptor(func, p)
if (descriptor) Object.defineProperty(apply, p, descriptor)
}
return apply
}
)
)

1024
node_modules/unified/lib/index.d.ts generated vendored Normal file

File diff suppressed because it is too large Load Diff

1
node_modules/unified/lib/index.d.ts.map generated vendored Normal file

File diff suppressed because one or more lines are too long

1323
node_modules/unified/lib/index.js generated vendored Normal file

File diff suppressed because it is too large Load Diff