@xylabs/static-implements
Advanced tools
Comparing version 2.10.18 to 2.11.0
@@ -1,8 +0,2 @@ | ||
/** | ||
* Annotation to decorate classes which implement static methods | ||
* @returns The decorated class requiring it to implement | ||
* the members of the the type as static properties/methods | ||
*/ | ||
declare function staticImplements<T>(): <U extends T>(constructor: U) => void; | ||
export { staticImplements }; | ||
export * from './staticImplements'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,37 +0,14 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
'use strict'; | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
staticImplements: () => staticImplements | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/staticImplements.ts | ||
/** | ||
* Annotation to decorate classes which implement static methods | ||
* @returns The decorated class requiring it to implement | ||
* the members of the the type as static properties/methods | ||
*/ | ||
function staticImplements() { | ||
return (constructor) => { | ||
constructor; | ||
}; | ||
return (constructor) => { | ||
}; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
staticImplements | ||
}); | ||
//# sourceMappingURL=index.js.map | ||
exports.staticImplements = staticImplements; | ||
//# sourceMappingURL=index.js.map |
@@ -43,6 +43,2 @@ { | ||
"module": "dist/index.mjs", | ||
"scripts": { | ||
"package-compile": "tsup && publint", | ||
"package-recompile": "tsup && publint" | ||
}, | ||
"homepage": "https://xylabs.com", | ||
@@ -56,7 +52,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^2.19.12", | ||
"@xylabs/tsconfig": "^2.19.12", | ||
"@xylabs/ts-scripts-yarn3": "^3.0.0-rc.15", | ||
"@xylabs/tsconfig": "^3.0.0-rc.15", | ||
"@xylabs/tsconfig-jest": "~2.19.12", | ||
"publint": "^0.2.2", | ||
"tsup": "^7.2.0", | ||
"typescript": "^5.2.2" | ||
@@ -72,3 +66,3 @@ }, | ||
"sideEffects": false, | ||
"version": "2.10.18" | ||
"version": "2.11.0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4
15
13674
41