@alevnyacow/nzmt 0.1.11 → 0.1.13
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/README.md +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,8 +64,6 @@ export class MathService {
|
|
|
64
64
|
// created generator
|
|
65
65
|
private methods = mathServiceMethods
|
|
66
66
|
|
|
67
|
-
public DIVIDED_BY_ZERO = 'DIVIDED_BY_ZERO'
|
|
68
|
-
|
|
69
67
|
public basicOperation = this.methods(
|
|
70
68
|
// Method name, working TS intellisense
|
|
71
69
|
'basicOperation',
|
|
@@ -95,7 +93,7 @@ export class MathService {
|
|
|
95
93
|
* metadata like method name, zod module name
|
|
96
94
|
* or payload will present in this error object.
|
|
97
95
|
*/
|
|
98
|
-
throw methodError(DIVIDED_BY_ZERO)
|
|
96
|
+
throw methodError('DIVIDED_BY_ZERO')
|
|
99
97
|
}
|
|
100
98
|
return { result: lhs / rhs }
|
|
101
99
|
}
|
|
@@ -118,6 +116,10 @@ const { result } = mathService.basicOperation({
|
|
|
118
116
|
})
|
|
119
117
|
```
|
|
120
118
|
|
|
119
|
+
### Metadata
|
|
120
|
+
|
|
121
|
+
Desribes module metadata. Metadata is used as an argument in `methods`.
|
|
122
|
+
|
|
121
123
|
## <a id='controller'></a>Controller
|
|
122
124
|
|
|
123
125
|
## <a id='store'></a>Store
|