@xylabs/static-implements 3.1.13 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ staticImplements: () => staticImplements
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // src/staticImplements.ts
28
+ function staticImplements() {
29
+ return (constructor) => {
30
+ constructor;
31
+ };
32
+ }
33
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/staticImplements.ts"],"sourcesContent":["export * from './staticImplements'\n","/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,2 @@
1
+ export * from './staticImplements';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './staticImplements';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './staticImplements';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -0,0 +1,10 @@
1
+ // src/staticImplements.ts
2
+ function staticImplements() {
3
+ return (constructor) => {
4
+ constructor;
5
+ };
6
+ }
7
+ export {
8
+ staticImplements
9
+ };
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/staticImplements.ts"],"sourcesContent":["/**\n * Annotation to decorate classes which implement static methods\n * @returns The decorated class requiring it to implement\n * the members of the the type as static properties/methods\n */\nexport function staticImplements<T>() {\n return <U extends T>(constructor: U) => {\n constructor\n }\n}\n"],"mappings":";AAKO,SAAS,mBAAsB;AACpC,SAAO,CAAc,gBAAmB;AACtC;AAAA,EACF;AACF;","names":[]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Annotation to decorate classes which implement static methods
3
+ * @returns The decorated class requiring it to implement
4
+ * the members of the the type as static properties/methods
5
+ */
6
+ export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
7
+ //# sourceMappingURL=staticImplements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,gCACE,CAAC,UAGpC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Annotation to decorate classes which implement static methods
3
+ * @returns The decorated class requiring it to implement
4
+ * the members of the the type as static properties/methods
5
+ */
6
+ export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
7
+ //# sourceMappingURL=staticImplements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,gCACE,CAAC,UAGpC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Annotation to decorate classes which implement static methods
3
+ * @returns The decorated class requiring it to implement
4
+ * the members of the the type as static properties/methods
5
+ */
6
+ export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
7
+ //# sourceMappingURL=staticImplements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,gCACE,CAAC,UAGpC"}
package/package.json CHANGED
@@ -14,19 +14,19 @@
14
14
  "exports": {
15
15
  ".": {
16
16
  "require": {
17
- "types": "./dist/node/index.d.cts",
18
- "default": "./dist/node/index.cjs"
17
+ "types": "./dist/neutral/index.d.cts",
18
+ "default": "./dist/neutral/index.cjs"
19
19
  },
20
20
  "import": {
21
- "types": "./dist/node/index.d.mts",
22
- "default": "./dist/node/index.js"
21
+ "types": "./dist/neutral/index.d.mts",
22
+ "default": "./dist/neutral/index.js"
23
23
  }
24
24
  },
25
25
  "./package.json": "./package.json"
26
26
  },
27
- "main": "./dist/node/index.cjs",
28
- "types": "./dist/node/index.d.ts",
29
- "module": "./dist/node/index.js",
27
+ "main": "./dist/neutral/index.cjs",
28
+ "types": "./dist/neutral/index.d.ts",
29
+ "module": "./dist/neutral/index.js",
30
30
  "homepage": "https://xylabs.com",
31
31
  "keywords": [
32
32
  "static",
@@ -37,9 +37,9 @@
37
37
  "esm"
38
38
  ],
39
39
  "devDependencies": {
40
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
41
- "@xylabs/tsconfig": "^3.9.1",
42
- "@xylabs/tsconfig-jest": "^3.9.1",
40
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
41
+ "@xylabs/tsconfig": "^3.10.0",
42
+ "@xylabs/tsconfig-jest": "^3.10.0",
43
43
  "typescript": "^5.4.5"
44
44
  },
45
45
  "engines": {
@@ -53,6 +53,6 @@
53
53
  "url": "https://github.com/xylabs/sdk-js.git"
54
54
  },
55
55
  "sideEffects": false,
56
- "version": "3.1.13",
56
+ "version": "3.2.0",
57
57
  "type": "module"
58
58
  }