@xylabs/static-implements 2.7.2 → 2.7.3

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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./staticImplements"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6DAAkC"}
@@ -2,10 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.staticImplements = void 0;
4
4
  /**
5
- * Annotation to be used to decorate classes which support
6
- * an asynchronous creation pattern
7
- * @returns The decorated Module requiring it implement the members
8
- * of the CreatableModule as statics properties/methods
5
+ * Annotation to decorate classes which implement static methods
6
+ * @returns The decorated class requiring it to implement
7
+ * the members of the the type as static properties/methods
9
8
  */
10
9
  function staticImplements() {
11
10
  return (constructor) => {
@@ -1 +1 @@
1
- {"version":3,"file":"staticImplements.js","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,gBAAgB;IAC9B,OAAO,CAAc,WAAc,EAAE,EAAE;QACrC,WAAW,CAAA;IACb,CAAC,CAAA;AACH,CAAC;AAJD,4CAIC"}
1
+ {"version":3,"file":"staticImplements.js","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,gBAAgB;IAC9B,OAAO,CAAc,WAAc,EAAE,EAAE;QACrC,WAAW,CAAA;IACb,CAAC,CAAA;AACH,CAAC;AAJD,4CAIC"}
package/dist/docs.json ADDED
@@ -0,0 +1,132 @@
1
+ {
2
+ "id": 0,
3
+ "name": "@xylabs/static-implements",
4
+ "kind": 1,
5
+ "kindString": "Project",
6
+ "flags": {},
7
+ "originalName": "",
8
+ "children": [
9
+ {
10
+ "id": 1,
11
+ "name": "staticImplements",
12
+ "kind": 64,
13
+ "kindString": "Function",
14
+ "flags": {},
15
+ "sources": [
16
+ {
17
+ "fileName": "staticImplements.ts",
18
+ "line": 6,
19
+ "character": 16,
20
+ "url": "https://github.com/xylabs/sdk-js/blob/860e19d/packages/static-implements/src/staticImplements.ts#L6"
21
+ }
22
+ ],
23
+ "signatures": [
24
+ {
25
+ "id": 2,
26
+ "name": "staticImplements",
27
+ "kind": 4096,
28
+ "kindString": "Call signature",
29
+ "flags": {},
30
+ "comment": {
31
+ "summary": [
32
+ {
33
+ "kind": "text",
34
+ "text": "Annotation to decorate classes which implement static methods"
35
+ }
36
+ ],
37
+ "blockTags": [
38
+ {
39
+ "tag": "@returns",
40
+ "content": [
41
+ {
42
+ "kind": "text",
43
+ "text": "The decorated class requiring it to implement\nthe members of the the type as static properties/methods"
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ },
49
+ "typeParameter": [
50
+ {
51
+ "id": 3,
52
+ "name": "T",
53
+ "kind": 131072,
54
+ "kindString": "Type parameter",
55
+ "flags": {}
56
+ }
57
+ ],
58
+ "type": {
59
+ "type": "reflection",
60
+ "declaration": {
61
+ "id": 4,
62
+ "name": "__type",
63
+ "kind": 65536,
64
+ "kindString": "Type literal",
65
+ "flags": {},
66
+ "sources": [
67
+ {
68
+ "fileName": "staticImplements.ts",
69
+ "line": 7,
70
+ "character": 9,
71
+ "url": "https://github.com/xylabs/sdk-js/blob/860e19d/packages/static-implements/src/staticImplements.ts#L7"
72
+ }
73
+ ],
74
+ "signatures": [
75
+ {
76
+ "id": 5,
77
+ "name": "__type",
78
+ "kind": 4096,
79
+ "kindString": "Call signature",
80
+ "flags": {},
81
+ "typeParameter": [
82
+ {
83
+ "id": 6,
84
+ "name": "U",
85
+ "kind": 131072,
86
+ "kindString": "Type parameter",
87
+ "flags": {}
88
+ }
89
+ ],
90
+ "parameters": [
91
+ {
92
+ "id": 7,
93
+ "name": "constructor",
94
+ "kind": 32768,
95
+ "kindString": "Parameter",
96
+ "flags": {},
97
+ "type": {
98
+ "type": "reference",
99
+ "id": 6,
100
+ "name": "U"
101
+ }
102
+ }
103
+ ],
104
+ "type": {
105
+ "type": "intrinsic",
106
+ "name": "void"
107
+ }
108
+ }
109
+ ]
110
+ }
111
+ }
112
+ }
113
+ ]
114
+ }
115
+ ],
116
+ "groups": [
117
+ {
118
+ "title": "Functions",
119
+ "children": [
120
+ 1
121
+ ]
122
+ }
123
+ ],
124
+ "sources": [
125
+ {
126
+ "fileName": "index.ts",
127
+ "line": 1,
128
+ "character": 0,
129
+ "url": "https://github.com/xylabs/sdk-js/blob/860e19d/packages/static-implements/src/index.ts#L1"
130
+ }
131
+ ]
132
+ }
@@ -0,0 +1,2 @@
1
+ export * from './staticImplements';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Annotation to be used to decorate classes which support
3
- * an asynchronous creation pattern
4
- * @returns The decorated Module requiring it implement the members
5
- * of the CreatableModule as statics properties/methods
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
6
5
  */
7
6
  export function staticImplements() {
8
7
  return (constructor) => {
@@ -1 +1 @@
1
- {"version":3,"file":"staticImplements.js","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAc,WAAc,EAAE,EAAE;QACrC,WAAW,CAAA;IACb,CAAC,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"staticImplements.js","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAc,WAAc,EAAE,EAAE;QACrC,WAAW,CAAA;IACb,CAAC,CAAA;AACH,CAAC"}
@@ -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"}
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Annotation to be used to decorate classes which support
3
- * an asynchronous creation pattern
4
- * @returns The decorated Module requiring it implement the members
5
- * of the CreatableModule as statics properties/methods
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
6
5
  */
7
6
  export declare function staticImplements<T>(): <U extends T>(constructor: U) => void;
8
7
  //# sourceMappingURL=staticImplements.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,2CAIjC"}
1
+ {"version":3,"file":"staticImplements.d.ts","sourceRoot":"","sources":["../../src/staticImplements.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,2CAIjC"}
package/package.json CHANGED
@@ -43,7 +43,8 @@
43
43
  "devDependencies": {
44
44
  "@xylabs/ts-scripts-yarn3": "^2.15.0",
45
45
  "@xylabs/tsconfig-jest": "^2.15.0",
46
- "jest": "^29.4.3"
46
+ "jest": "^29.4.3",
47
+ "typescript": "^4.9.5"
47
48
  },
48
49
  "peerDependencies": {
49
50
  "jest": "*"
@@ -56,5 +57,5 @@
56
57
  "url": "https://github.com/xylabs/sdk-js.git"
57
58
  },
58
59
  "sideEffects": false,
59
- "version": "2.7.2"
60
+ "version": "2.7.3"
60
61
  }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './staticImplements'
@@ -1,8 +1,7 @@
1
1
  /**
2
- * Annotation to be used to decorate classes which support
3
- * an asynchronous creation pattern
4
- * @returns The decorated Module requiring it implement the members
5
- * of the CreatableModule as statics properties/methods
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
6
5
  */
7
6
  export function staticImplements<T>() {
8
7
  return <U extends T>(constructor: U) => {