@twin.org/nameof 0.0.2-next.9 → 0.0.3-next.1
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.
- package/dist/es/index.js +33 -0
- package/dist/es/index.js.map +1 -0
- package/dist/types/index.d.ts +14 -0
- package/docs/changelog.md +207 -0
- package/docs/reference/functions/nameofCamelCase.md +31 -0
- package/docs/reference/functions/nameofKebabCase.md +31 -0
- package/docs/reference/index.md +2 -0
- package/package.json +17 -8
- package/dist/cjs/index.cjs +0 -16
- package/dist/esm/index.mjs +0 -14
package/dist/es/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* Placeholder method which substitutes the type name as a string at runtime.
|
|
5
|
+
* @param property The property to get the name of.
|
|
6
|
+
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
7
|
+
* @returns The type name as a string.
|
|
8
|
+
*/
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
+
export function nameof(property, replaceParent) {
|
|
11
|
+
return "@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.";
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Placeholder method which substitutes the type name as a string at runtime.
|
|
15
|
+
* @param property The property to get the name of.
|
|
16
|
+
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
17
|
+
* @returns The type name as a string.
|
|
18
|
+
*/
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
20
|
+
export function nameofKebabCase(property, replaceParent) {
|
|
21
|
+
return "@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Placeholder method which substitutes the type name as a string at runtime.
|
|
25
|
+
* @param property The property to get the name of.
|
|
26
|
+
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
27
|
+
* @returns The type name as a string.
|
|
28
|
+
*/
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30
|
+
export function nameofCamelCase(property, replaceParent) {
|
|
31
|
+
return "@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.";
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;;;GAKG;AACH,6DAA6D;AAC7D,MAAM,UAAU,MAAM,CAAI,QAAkB,EAAE,aAAsB;IACnE,OAAO,0HAA0H,CAAC;AACnI,CAAC;AAED;;;;;GAKG;AACH,6DAA6D;AAC7D,MAAM,UAAU,eAAe,CAAI,QAAkB,EAAE,aAAsB;IAC5E,OAAO,0HAA0H,CAAC;AACnI,CAAC;AAED;;;;;GAKG;AACH,6DAA6D;AAC7D,MAAM,UAAU,eAAe,CAAI,QAAkB,EAAE,aAAsB;IAC5E,OAAO,0HAA0H,CAAC;AACnI,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Placeholder method which substitutes the type name as a string at runtime.\n * @param property The property to get the name of.\n * @param replaceParent Optional object name to replace the top level object of a property path.\n * @returns The type name as a string.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function nameof<T>(property?: unknown, replaceParent?: string): string {\n\treturn \"@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.\";\n}\n\n/**\n * Placeholder method which substitutes the type name as a string at runtime.\n * @param property The property to get the name of.\n * @param replaceParent Optional object name to replace the top level object of a property path.\n * @returns The type name as a string.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function nameofKebabCase<T>(property?: unknown, replaceParent?: string): string {\n\treturn \"@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.\";\n}\n\n/**\n * Placeholder method which substitutes the type name as a string at runtime.\n * @param property The property to get the name of.\n * @param replaceParent Optional object name to replace the top level object of a property path.\n * @returns The type name as a string.\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function nameofCamelCase<T>(property?: unknown, replaceParent?: string): string {\n\treturn \"@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.\";\n}\n"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,3 +5,17 @@
|
|
|
5
5
|
* @returns The type name as a string.
|
|
6
6
|
*/
|
|
7
7
|
export declare function nameof<T>(property?: unknown, replaceParent?: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Placeholder method which substitutes the type name as a string at runtime.
|
|
10
|
+
* @param property The property to get the name of.
|
|
11
|
+
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
12
|
+
* @returns The type name as a string.
|
|
13
|
+
*/
|
|
14
|
+
export declare function nameofKebabCase<T>(property?: unknown, replaceParent?: string): string;
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder method which substitutes the type name as a string at runtime.
|
|
17
|
+
* @param property The property to get the name of.
|
|
18
|
+
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
19
|
+
* @returns The type name as a string.
|
|
20
|
+
*/
|
|
21
|
+
export declare function nameofCamelCase<T>(property?: unknown, replaceParent?: string): string;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,212 @@
|
|
|
1
1
|
# @twin.org/nameof - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.1](https://github.com/twinfoundation/framework/compare/nameof-v0.0.3-next.0...nameof-v0.0.3-next.1) (2025-11-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#206](https://github.com/twinfoundation/framework/issues/206)) ([ef0d4ee](https://github.com/twinfoundation/framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
|
|
9
|
+
* additional nameof operators ([a5aab60](https://github.com/twinfoundation/framework/commit/a5aab60bf66a86f1b7ff8af7c4f044cb03706d50))
|
|
10
|
+
* eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
|
|
11
|
+
* locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
12
|
+
* relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
|
|
13
|
+
* update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
|
|
14
|
+
* use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* repo urls in package.json for moved packages ([31ae463](https://github.com/twinfoundation/framework/commit/31ae463095dfa8c0e48bb5bb12316f1e8abb9a4c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Dependencies
|
|
23
|
+
|
|
24
|
+
* The following workspace dependencies were updated
|
|
25
|
+
* devDependencies
|
|
26
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
27
|
+
|
|
28
|
+
## [0.0.2-next.22](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.21...nameof-v0.0.2-next.22) (2025-10-10)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Miscellaneous Chores
|
|
32
|
+
|
|
33
|
+
* **nameof:** Synchronize repo versions
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Dependencies
|
|
37
|
+
|
|
38
|
+
* The following workspace dependencies were updated
|
|
39
|
+
* devDependencies
|
|
40
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.21 to 0.0.2-next.22
|
|
41
|
+
|
|
42
|
+
## [0.0.2-next.21](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.20...nameof-v0.0.2-next.21) (2025-10-09)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Dependencies
|
|
51
|
+
|
|
52
|
+
* The following workspace dependencies were updated
|
|
53
|
+
* devDependencies
|
|
54
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.20 to 0.0.2-next.21
|
|
55
|
+
|
|
56
|
+
## [0.0.2-next.20](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.19...nameof-v0.0.2-next.20) (2025-10-02)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### Miscellaneous Chores
|
|
60
|
+
|
|
61
|
+
* **nameof:** Synchronize repo versions
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Dependencies
|
|
65
|
+
|
|
66
|
+
* The following workspace dependencies were updated
|
|
67
|
+
* devDependencies
|
|
68
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
|
|
69
|
+
|
|
70
|
+
## [0.0.2-next.19](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.18...nameof-v0.0.2-next.19) (2025-09-30)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Miscellaneous Chores
|
|
74
|
+
|
|
75
|
+
* **nameof:** Synchronize repo versions
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Dependencies
|
|
79
|
+
|
|
80
|
+
* The following workspace dependencies were updated
|
|
81
|
+
* devDependencies
|
|
82
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.18 to 0.0.2-next.19
|
|
83
|
+
|
|
84
|
+
## [0.0.2-next.18](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.17...nameof-v0.0.2-next.18) (2025-09-29)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
### Miscellaneous Chores
|
|
88
|
+
|
|
89
|
+
* **nameof:** Synchronize repo versions
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Dependencies
|
|
93
|
+
|
|
94
|
+
* The following workspace dependencies were updated
|
|
95
|
+
* devDependencies
|
|
96
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.17 to 0.0.2-next.18
|
|
97
|
+
|
|
98
|
+
## [0.0.2-next.17](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.16...nameof-v0.0.2-next.17) (2025-09-29)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Features
|
|
102
|
+
|
|
103
|
+
* additional nameof operators ([a5aab60](https://github.com/twinfoundation/framework/commit/a5aab60bf66a86f1b7ff8af7c4f044cb03706d50))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Dependencies
|
|
107
|
+
|
|
108
|
+
* The following workspace dependencies were updated
|
|
109
|
+
* devDependencies
|
|
110
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.16 to 0.0.2-next.17
|
|
111
|
+
|
|
112
|
+
## [0.0.2-next.16](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.15...nameof-v0.0.2-next.16) (2025-09-28)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Miscellaneous Chores
|
|
116
|
+
|
|
117
|
+
* **nameof:** Synchronize repo versions
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Dependencies
|
|
121
|
+
|
|
122
|
+
* The following workspace dependencies were updated
|
|
123
|
+
* devDependencies
|
|
124
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.15 to 0.0.2-next.16
|
|
125
|
+
|
|
126
|
+
## [0.0.2-next.15](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.14...nameof-v0.0.2-next.15) (2025-09-22)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Miscellaneous Chores
|
|
130
|
+
|
|
131
|
+
* **nameof:** Synchronize repo versions
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Dependencies
|
|
135
|
+
|
|
136
|
+
* The following workspace dependencies were updated
|
|
137
|
+
* devDependencies
|
|
138
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.14 to 0.0.2-next.15
|
|
139
|
+
|
|
140
|
+
## [0.0.2-next.14](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.13...nameof-v0.0.2-next.14) (2025-09-22)
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Miscellaneous Chores
|
|
144
|
+
|
|
145
|
+
* **nameof:** Synchronize repo versions
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
### Dependencies
|
|
149
|
+
|
|
150
|
+
* The following workspace dependencies were updated
|
|
151
|
+
* devDependencies
|
|
152
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.13 to 0.0.2-next.14
|
|
153
|
+
|
|
154
|
+
## [0.0.2-next.13](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.12...nameof-v0.0.2-next.13) (2025-09-22)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Miscellaneous Chores
|
|
158
|
+
|
|
159
|
+
* **nameof:** Synchronize repo versions
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Dependencies
|
|
163
|
+
|
|
164
|
+
* The following workspace dependencies were updated
|
|
165
|
+
* devDependencies
|
|
166
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.12 to 0.0.2-next.13
|
|
167
|
+
|
|
168
|
+
## [0.0.2-next.12](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.11...nameof-v0.0.2-next.12) (2025-09-15)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Miscellaneous Chores
|
|
172
|
+
|
|
173
|
+
* **nameof:** Synchronize repo versions
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Dependencies
|
|
177
|
+
|
|
178
|
+
* The following workspace dependencies were updated
|
|
179
|
+
* devDependencies
|
|
180
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.11 to 0.0.2-next.12
|
|
181
|
+
|
|
182
|
+
## [0.0.2-next.11](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.10...nameof-v0.0.2-next.11) (2025-09-15)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### Miscellaneous Chores
|
|
186
|
+
|
|
187
|
+
* **nameof:** Synchronize repo versions
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Dependencies
|
|
191
|
+
|
|
192
|
+
* The following workspace dependencies were updated
|
|
193
|
+
* devDependencies
|
|
194
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.10 to 0.0.2-next.11
|
|
195
|
+
|
|
196
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.9...nameof-v0.0.2-next.10) (2025-09-11)
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Miscellaneous Chores
|
|
200
|
+
|
|
201
|
+
* **nameof:** Synchronize repo versions
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Dependencies
|
|
205
|
+
|
|
206
|
+
* The following workspace dependencies were updated
|
|
207
|
+
* devDependencies
|
|
208
|
+
* @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
|
|
209
|
+
|
|
3
210
|
## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/nameof-v0.0.2-next.8...nameof-v0.0.2-next.9) (2025-09-08)
|
|
4
211
|
|
|
5
212
|
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: nameofCamelCase()
|
|
2
|
+
|
|
3
|
+
> **nameofCamelCase**\<`T`\>(`property?`, `replaceParent?`): `string`
|
|
4
|
+
|
|
5
|
+
Placeholder method which substitutes the type name as a string at runtime.
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
### T
|
|
10
|
+
|
|
11
|
+
`T`
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### property?
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
The property to get the name of.
|
|
20
|
+
|
|
21
|
+
### replaceParent?
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
Optional object name to replace the top level object of a property path.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The type name as a string.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Function: nameofKebabCase()
|
|
2
|
+
|
|
3
|
+
> **nameofKebabCase**\<`T`\>(`property?`, `replaceParent?`): `string`
|
|
4
|
+
|
|
5
|
+
Placeholder method which substitutes the type name as a string at runtime.
|
|
6
|
+
|
|
7
|
+
## Type Parameters
|
|
8
|
+
|
|
9
|
+
### T
|
|
10
|
+
|
|
11
|
+
`T`
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### property?
|
|
16
|
+
|
|
17
|
+
`unknown`
|
|
18
|
+
|
|
19
|
+
The property to get the name of.
|
|
20
|
+
|
|
21
|
+
### replaceParent?
|
|
22
|
+
|
|
23
|
+
`string`
|
|
24
|
+
|
|
25
|
+
Optional object name to replace the top level object of a property path.
|
|
26
|
+
|
|
27
|
+
## Returns
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The type name as a string.
|
package/docs/reference/index.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/nameof",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3-next.1",
|
|
4
4
|
"description": "Provides the definitions for the methods which are processed by the nameof-transformer",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,21 +13,30 @@
|
|
|
13
13
|
"engines": {
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
|
-
"main": "./dist/
|
|
17
|
-
"module": "./dist/esm/index.mjs",
|
|
16
|
+
"main": "./dist/es/index.js",
|
|
18
17
|
"types": "./dist/types/index.d.ts",
|
|
19
18
|
"exports": {
|
|
20
19
|
".": {
|
|
21
20
|
"types": "./dist/types/index.d.ts",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
21
|
+
"import": "./dist/es/index.js",
|
|
22
|
+
"default": "./dist/es/index.js"
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
27
|
-
"dist/
|
|
28
|
-
"dist/esm",
|
|
26
|
+
"dist/es",
|
|
29
27
|
"dist/types",
|
|
30
28
|
"locales",
|
|
31
29
|
"docs"
|
|
32
|
-
]
|
|
30
|
+
],
|
|
31
|
+
"keywords": [
|
|
32
|
+
"twin",
|
|
33
|
+
"trade",
|
|
34
|
+
"iota",
|
|
35
|
+
"framework",
|
|
36
|
+
"blockchain"
|
|
37
|
+
],
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "git+https://github.com/twinfoundation/framework/issues"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://twindev.org"
|
|
33
42
|
}
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// Copyright 2024 IOTA Stiftung.
|
|
4
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
5
|
-
/**
|
|
6
|
-
* Placeholder method which substitutes the type name as a string at runtime.
|
|
7
|
-
* @param property The property to get the name of.
|
|
8
|
-
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
9
|
-
* @returns The type name as a string.
|
|
10
|
-
*/
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
|
-
function nameof(property, replaceParent) {
|
|
13
|
-
return "@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.";
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
exports.nameof = nameof;
|
package/dist/esm/index.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright 2024 IOTA Stiftung.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
-
/**
|
|
4
|
-
* Placeholder method which substitutes the type name as a string at runtime.
|
|
5
|
-
* @param property The property to get the name of.
|
|
6
|
-
* @param replaceParent Optional object name to replace the top level object of a property path.
|
|
7
|
-
* @returns The type name as a string.
|
|
8
|
-
*/
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10
|
-
function nameof(property, replaceParent) {
|
|
11
|
-
return "@twin.org/nameof-transformer is not in the build pipeline, you need to use a compiler that supports transformer plugins.";
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { nameof };
|