@oliversalzburg/js-utils 0.0.6 → 0.0.8

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.
Files changed (56) hide show
  1. package/LICENSES.md +17 -0
  2. package/lib/dom/core.d.ts +12 -0
  3. package/lib/dom/core.js +23 -0
  4. package/lib/dom/core.js.map +1 -0
  5. package/lib/dom/index.d.ts +1 -0
  6. package/lib/dom/index.js +2 -0
  7. package/lib/dom/index.js.map +1 -0
  8. package/lib/error-serializer.js +1 -2
  9. package/lib/error-serializer.js.map +1 -1
  10. package/lib/error-serializer.test.d.ts +1 -0
  11. package/lib/error-serializer.test.js +117 -0
  12. package/lib/error-serializer.test.js.map +1 -0
  13. package/lib/graphics/canvas.d.ts +21 -0
  14. package/lib/graphics/canvas.js +21 -0
  15. package/lib/graphics/canvas.js.map +1 -1
  16. package/lib/graphics/render-loop.d.ts +21 -3
  17. package/lib/graphics/render-loop.js +25 -2
  18. package/lib/graphics/render-loop.js.map +1 -1
  19. package/lib/index.d.ts +1 -0
  20. package/lib/index.js +1 -0
  21. package/lib/index.js.map +1 -1
  22. package/lib/math/core.js +1 -1
  23. package/lib/math/core.js.map +1 -1
  24. package/lib/math/index.d.ts +2 -0
  25. package/lib/math/index.js +2 -0
  26. package/lib/math/index.js.map +1 -1
  27. package/lib/math/vector.d.ts +2 -33
  28. package/lib/math/vector.js +2 -41
  29. package/lib/math/vector.js.map +1 -1
  30. package/lib/math/vector2.d.ts +164 -0
  31. package/lib/math/vector2.js +255 -0
  32. package/lib/math/vector2.js.map +1 -0
  33. package/lib/math/vector3.d.ts +45 -0
  34. package/lib/math/vector3.js +58 -0
  35. package/lib/math/vector3.js.map +1 -0
  36. package/lib/random.d.ts +6 -3
  37. package/lib/random.js +15 -12
  38. package/lib/random.js.map +1 -1
  39. package/package.json +13 -13
  40. package/docs/README.md +0 -3
  41. package/docs/classes/AbstractError.md +0 -271
  42. package/docs/classes/Canvas.md +0 -177
  43. package/docs/classes/InternalError.md +0 -301
  44. package/docs/classes/InvalidArgumentError.md +0 -277
  45. package/docs/classes/InvalidOperationError.md +0 -277
  46. package/docs/classes/NotImplementedError.md +0 -276
  47. package/docs/classes/PermissionViolationError.md +0 -277
  48. package/docs/classes/Random.md +0 -109
  49. package/docs/classes/RenderLoop.md +0 -49
  50. package/docs/classes/ResourceConflictError.md +0 -276
  51. package/docs/classes/UnexpectedNilError.md +0 -169
  52. package/docs/classes/UnknownError.md +0 -280
  53. package/docs/classes/Vector2.md +0 -79
  54. package/docs/classes/Vector3.md +0 -106
  55. package/docs/modules.md +0 -1313
  56. package/typedoc.json +0 -8
@@ -1,277 +0,0 @@
1
- [@oliversalzburg/js-utils](../README.md) / [Exports](../modules.md) / PermissionViolationError
2
-
3
- # Class: PermissionViolationError
4
-
5
- An error used when access to a resource was requested, but the required
6
- permissions were not available.
7
-
8
- ## Hierarchy
9
-
10
- - [`AbstractError`](AbstractError.md)
11
-
12
- ↳ **`PermissionViolationError`**
13
-
14
- ## Constructors
15
-
16
- ### constructor
17
-
18
- • **new PermissionViolationError**(`message`, `status?`): [`PermissionViolationError`](PermissionViolationError.md)
19
-
20
- Constructs a new [PermissionViolationError](PermissionViolationError.md).
21
-
22
- #### Parameters
23
-
24
- | Name | Type | Default value | Description |
25
- | :-------- | :------- | :------------ | :------------------------------ |
26
- | `message` | `string` | `undefined` | The main error message. |
27
- | `status` | `number` | `403` | The HTTP status code to return. |
28
-
29
- #### Returns
30
-
31
- [`PermissionViolationError`](PermissionViolationError.md)
32
-
33
- #### Overrides
34
-
35
- [AbstractError](AbstractError.md).[constructor](AbstractError.md#constructor)
36
-
37
- #### Defined in
38
-
39
- [errors/PermissionViolationError.ts:13](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/PermissionViolationError.ts#L13)
40
-
41
- ## Properties
42
-
43
- ### cause
44
-
45
- • `Optional` **cause**: `unknown`
46
-
47
- #### Inherited from
48
-
49
- [AbstractError](AbstractError.md).[cause](AbstractError.md#cause)
50
-
51
- #### Defined in
52
-
53
- ../node_modules/typescript/lib/lib.es2022.error.d.ts:24
54
-
55
- ---
56
-
57
- ### code
58
-
59
- • **code**: `string`
60
-
61
- An application-unique, readable error code.
62
-
63
- #### Inherited from
64
-
65
- [AbstractError](AbstractError.md).[code](AbstractError.md#code)
66
-
67
- #### Defined in
68
-
69
- [errors/AbstractError.ts:29](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L29)
70
-
71
- ---
72
-
73
- ### info
74
-
75
- • **info**: [`Maybe`](../modules.md#maybe)\<`string`\>
76
-
77
- A user-friendly error message that may be transported to the client.
78
-
79
- **`Deprecated`**
80
-
81
- User-friendly errors should be read from `extensions`.
82
-
83
- #### Inherited from
84
-
85
- [AbstractError](AbstractError.md).[info](AbstractError.md#info)
86
-
87
- #### Defined in
88
-
89
- [errors/AbstractError.ts:24](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L24)
90
-
91
- ---
92
-
93
- ### inner
94
-
95
- • **inner**: [`Maybe`](../modules.md#maybe)\<`Error`\>
96
-
97
- Another error that should be transported with this error.
98
-
99
- **`Deprecated`**
100
-
101
- We don't make use of this or interpret nested errors at all.
102
-
103
- #### Inherited from
104
-
105
- [AbstractError](AbstractError.md).[inner](AbstractError.md#inner)
106
-
107
- #### Defined in
108
-
109
- [errors/AbstractError.ts:18](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L18)
110
-
111
- ---
112
-
113
- ### message
114
-
115
- • **message**: `string`
116
-
117
- #### Inherited from
118
-
119
- [AbstractError](AbstractError.md).[message](AbstractError.md#message)
120
-
121
- #### Defined in
122
-
123
- ../node_modules/typescript/lib/lib.es5.d.ts:1068
124
-
125
- ---
126
-
127
- ### name
128
-
129
- • **name**: `string`
130
-
131
- #### Inherited from
132
-
133
- [AbstractError](AbstractError.md).[name](AbstractError.md#name)
134
-
135
- #### Defined in
136
-
137
- ../node_modules/typescript/lib/lib.es5.d.ts:1067
138
-
139
- ---
140
-
141
- ### stack
142
-
143
- • `Optional` **stack**: `string`
144
-
145
- #### Inherited from
146
-
147
- [AbstractError](AbstractError.md).[stack](AbstractError.md#stack)
148
-
149
- #### Defined in
150
-
151
- ../node_modules/typescript/lib/lib.es5.d.ts:1069
152
-
153
- ---
154
-
155
- ### status
156
-
157
- • **status**: `number`
158
-
159
- The HTTP status code to associate with this error.
160
-
161
- **`Deprecated`**
162
-
163
- We no longer respond to HTTP requests with error-specifc
164
- status codes.
165
-
166
- #### Inherited from
167
-
168
- [AbstractError](AbstractError.md).[status](AbstractError.md#status)
169
-
170
- #### Defined in
171
-
172
- [errors/AbstractError.ts:12](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L12)
173
-
174
- ---
175
-
176
- ### prepareStackTrace
177
-
178
- ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
179
-
180
- #### Type declaration
181
-
182
- ▸ (`err`, `stackTraces`): `any`
183
-
184
- Optional override for formatting stack traces
185
-
186
- ##### Parameters
187
-
188
- | Name | Type |
189
- | :------------ | :----------- |
190
- | `err` | `Error` |
191
- | `stackTraces` | `CallSite`[] |
192
-
193
- ##### Returns
194
-
195
- `any`
196
-
197
- **`See`**
198
-
199
- https://v8.dev/docs/stack-trace-api#customizing-stack-traces
200
-
201
- #### Inherited from
202
-
203
- [AbstractError](AbstractError.md).[prepareStackTrace](AbstractError.md#preparestacktrace)
204
-
205
- #### Defined in
206
-
207
- ../node_modules/@types/node/globals.d.ts:11
208
-
209
- ---
210
-
211
- ### stackTraceLimit
212
-
213
- ▪ `Static` **stackTraceLimit**: `number`
214
-
215
- #### Inherited from
216
-
217
- [AbstractError](AbstractError.md).[stackTraceLimit](AbstractError.md#stacktracelimit)
218
-
219
- #### Defined in
220
-
221
- ../node_modules/@types/node/globals.d.ts:13
222
-
223
- ## Methods
224
-
225
- ### captureStackTrace
226
-
227
- ▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
228
-
229
- Create .stack property on a target object
230
-
231
- #### Parameters
232
-
233
- | Name | Type |
234
- | :---------------- | :--------- |
235
- | `targetObject` | `object` |
236
- | `constructorOpt?` | `Function` |
237
-
238
- #### Returns
239
-
240
- `void`
241
-
242
- #### Inherited from
243
-
244
- [AbstractError](AbstractError.md).[captureStackTrace](AbstractError.md#capturestacktrace)
245
-
246
- #### Defined in
247
-
248
- ../node_modules/@types/node/globals.d.ts:4
249
-
250
- ---
251
-
252
- ### isAbstractError
253
-
254
- ▸ **isAbstractError**(`error`, `allowForeignModule?`): error is AbstractError
255
-
256
- Checks if an object is an instance of [AbstractError](AbstractError.md), or one of its subclasses.
257
-
258
- #### Parameters
259
-
260
- | Name | Type | Default value | Description |
261
- | :------------------- | :-------- | :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------- |
262
- | `error` | `unknown` | `undefined` | The object to check. |
263
- | `allowForeignModule` | `boolean` | `true` | Only check for similar looking error codes. You're going to want to use this if you're dealing with a setup where multiple versions of js-utils are loaded. |
264
-
265
- #### Returns
266
-
267
- error is AbstractError
268
-
269
- `true` if the object is an [AbstractError](AbstractError.md), `false` otherwise.
270
-
271
- #### Inherited from
272
-
273
- [AbstractError](AbstractError.md).[isAbstractError](AbstractError.md#isabstracterror)
274
-
275
- #### Defined in
276
-
277
- [errors/AbstractError.ts:58](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L58)
@@ -1,109 +0,0 @@
1
- [@oliversalzburg/js-utils](../README.md) / [Exports](../modules.md) / Random
2
-
3
- # Class: Random
4
-
5
- Helps with generating random numbers.
6
-
7
- ## Constructors
8
-
9
- ### constructor
10
-
11
- • **new Random**(`seed?`): [`Random`](Random.md)
12
-
13
- Creates a pseudo-random value generator. The seed must be an integer.
14
-
15
- Uses an optimized version of the Park-Miller PRNG.
16
- http://www.firstpr.com.au/dsp/rand31/
17
-
18
- #### Parameters
19
-
20
- | Name | Type | Default value | Description |
21
- | :----- | :------- | :------------ | :---------------------------------------- |
22
- | `seed` | `number` | `0` | The seed for the random number generator. |
23
-
24
- #### Returns
25
-
26
- [`Random`](Random.md)
27
-
28
- #### Defined in
29
-
30
- [random.ts:20](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/random.ts#L20)
31
-
32
- ## Methods
33
-
34
- ### next
35
-
36
- ▸ **next**(): `number`
37
-
38
- Returns a pseudo-random value between 1 and 2^32 - 2.
39
-
40
- #### Returns
41
-
42
- `number`
43
-
44
- A pseudo-random value between 1 and 2^32 - 2.
45
-
46
- #### Defined in
47
-
48
- [random.ts:81](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/random.ts#L81)
49
-
50
- ---
51
-
52
- ### nextBoolean
53
-
54
- ▸ **nextBoolean**(): `boolean`
55
-
56
- Returns either `true` or `false`.
57
-
58
- #### Returns
59
-
60
- `boolean`
61
-
62
- Either `true` or `false`.
63
-
64
- #### Defined in
65
-
66
- [random.ts:89](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/random.ts#L89)
67
-
68
- ---
69
-
70
- ### nextFloat
71
-
72
- ▸ **nextFloat**(): `number`
73
-
74
- Returns a pseudo-random floating point number in range [0, 1).
75
-
76
- #### Returns
77
-
78
- `number`
79
-
80
- a pseudo-random floating point number in range [0, 1).
81
-
82
- #### Defined in
83
-
84
- [random.ts:97](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/random.ts#L97)
85
-
86
- ---
87
-
88
- ### simplex2
89
-
90
- ▸ **simplex2**(`xin`, `yin`): `number`
91
-
92
- Returns a 2D simplex noise value for a given input coordinate.
93
-
94
- #### Parameters
95
-
96
- | Name | Type | Description |
97
- | :---- | :------- | :---------------------- |
98
- | `xin` | `number` | The X input coordinate. |
99
- | `yin` | `number` | The Y input coordinate. |
100
-
101
- #### Returns
102
-
103
- `number`
104
-
105
- The noise value for the input coordinates.
106
-
107
- #### Defined in
108
-
109
- [random.ts:108](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/random.ts#L108)
@@ -1,49 +0,0 @@
1
- [@oliversalzburg/js-utils](../README.md) / [Exports](../modules.md) / RenderLoop
2
-
3
- # Class: RenderLoop
4
-
5
- Conveniently provides a way to have a render loop called at
6
- a constant frame rate.
7
-
8
- ## Constructors
9
-
10
- ### constructor
11
-
12
- • **new RenderLoop**(`renderLoop`, `canvas?`): [`RenderLoop`](RenderLoop.md)
13
-
14
- Constructs a new [RenderLoop](RenderLoop.md).
15
-
16
- #### Parameters
17
-
18
- | Name | Type | Description |
19
- | :----------- | :----------------------------------------- | :----------------------------------------------------------------------------- |
20
- | `renderLoop` | [`AnyFunction`](../modules.md#anyfunction) | The function to call when a new frame should be drawn. |
21
- | `canvas?` | [`Canvas`](Canvas.md) | When provided, the canvas is automatically updated after a frame was rendered. |
22
-
23
- #### Returns
24
-
25
- [`RenderLoop`](RenderLoop.md)
26
-
27
- #### Defined in
28
-
29
- [graphics/render-loop.ts:20](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/graphics/render-loop.ts#L20)
30
-
31
- ## Properties
32
-
33
- ### canvas
34
-
35
- • `Readonly` **canvas**: `undefined` \| [`Canvas`](Canvas.md)
36
-
37
- #### Defined in
38
-
39
- [graphics/render-loop.ts:9](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/graphics/render-loop.ts#L9)
40
-
41
- ---
42
-
43
- ### renderLoop
44
-
45
- • `Readonly` **renderLoop**: [`AnyFunction`](../modules.md#anyfunction)
46
-
47
- #### Defined in
48
-
49
- [graphics/render-loop.ts:10](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/graphics/render-loop.ts#L10)
@@ -1,276 +0,0 @@
1
- [@oliversalzburg/js-utils](../README.md) / [Exports](../modules.md) / ResourceConflictError
2
-
3
- # Class: ResourceConflictError
4
-
5
- Used when a resource conflict was detected.
6
-
7
- ## Hierarchy
8
-
9
- - [`AbstractError`](AbstractError.md)
10
-
11
- ↳ **`ResourceConflictError`**
12
-
13
- ## Constructors
14
-
15
- ### constructor
16
-
17
- • **new ResourceConflictError**(`message`, `status?`): [`ResourceConflictError`](ResourceConflictError.md)
18
-
19
- Constructs a new [ResourceConflictError](ResourceConflictError.md).
20
-
21
- #### Parameters
22
-
23
- | Name | Type | Default value | Description |
24
- | :-------- | :------- | :------------ | :------------------------------ |
25
- | `message` | `string` | `undefined` | The main error message. |
26
- | `status` | `number` | `409` | The HTTP status code to return. |
27
-
28
- #### Returns
29
-
30
- [`ResourceConflictError`](ResourceConflictError.md)
31
-
32
- #### Overrides
33
-
34
- [AbstractError](AbstractError.md).[constructor](AbstractError.md#constructor)
35
-
36
- #### Defined in
37
-
38
- [errors/ResourceConflictError.ts:12](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/ResourceConflictError.ts#L12)
39
-
40
- ## Properties
41
-
42
- ### cause
43
-
44
- • `Optional` **cause**: `unknown`
45
-
46
- #### Inherited from
47
-
48
- [AbstractError](AbstractError.md).[cause](AbstractError.md#cause)
49
-
50
- #### Defined in
51
-
52
- ../node_modules/typescript/lib/lib.es2022.error.d.ts:24
53
-
54
- ---
55
-
56
- ### code
57
-
58
- • **code**: `string`
59
-
60
- An application-unique, readable error code.
61
-
62
- #### Inherited from
63
-
64
- [AbstractError](AbstractError.md).[code](AbstractError.md#code)
65
-
66
- #### Defined in
67
-
68
- [errors/AbstractError.ts:29](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L29)
69
-
70
- ---
71
-
72
- ### info
73
-
74
- • **info**: [`Maybe`](../modules.md#maybe)\<`string`\>
75
-
76
- A user-friendly error message that may be transported to the client.
77
-
78
- **`Deprecated`**
79
-
80
- User-friendly errors should be read from `extensions`.
81
-
82
- #### Inherited from
83
-
84
- [AbstractError](AbstractError.md).[info](AbstractError.md#info)
85
-
86
- #### Defined in
87
-
88
- [errors/AbstractError.ts:24](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L24)
89
-
90
- ---
91
-
92
- ### inner
93
-
94
- • **inner**: [`Maybe`](../modules.md#maybe)\<`Error`\>
95
-
96
- Another error that should be transported with this error.
97
-
98
- **`Deprecated`**
99
-
100
- We don't make use of this or interpret nested errors at all.
101
-
102
- #### Inherited from
103
-
104
- [AbstractError](AbstractError.md).[inner](AbstractError.md#inner)
105
-
106
- #### Defined in
107
-
108
- [errors/AbstractError.ts:18](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L18)
109
-
110
- ---
111
-
112
- ### message
113
-
114
- • **message**: `string`
115
-
116
- #### Inherited from
117
-
118
- [AbstractError](AbstractError.md).[message](AbstractError.md#message)
119
-
120
- #### Defined in
121
-
122
- ../node_modules/typescript/lib/lib.es5.d.ts:1068
123
-
124
- ---
125
-
126
- ### name
127
-
128
- • **name**: `string`
129
-
130
- #### Inherited from
131
-
132
- [AbstractError](AbstractError.md).[name](AbstractError.md#name)
133
-
134
- #### Defined in
135
-
136
- ../node_modules/typescript/lib/lib.es5.d.ts:1067
137
-
138
- ---
139
-
140
- ### stack
141
-
142
- • `Optional` **stack**: `string`
143
-
144
- #### Inherited from
145
-
146
- [AbstractError](AbstractError.md).[stack](AbstractError.md#stack)
147
-
148
- #### Defined in
149
-
150
- ../node_modules/typescript/lib/lib.es5.d.ts:1069
151
-
152
- ---
153
-
154
- ### status
155
-
156
- • **status**: `number`
157
-
158
- The HTTP status code to associate with this error.
159
-
160
- **`Deprecated`**
161
-
162
- We no longer respond to HTTP requests with error-specifc
163
- status codes.
164
-
165
- #### Inherited from
166
-
167
- [AbstractError](AbstractError.md).[status](AbstractError.md#status)
168
-
169
- #### Defined in
170
-
171
- [errors/AbstractError.ts:12](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L12)
172
-
173
- ---
174
-
175
- ### prepareStackTrace
176
-
177
- ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
178
-
179
- #### Type declaration
180
-
181
- ▸ (`err`, `stackTraces`): `any`
182
-
183
- Optional override for formatting stack traces
184
-
185
- ##### Parameters
186
-
187
- | Name | Type |
188
- | :------------ | :----------- |
189
- | `err` | `Error` |
190
- | `stackTraces` | `CallSite`[] |
191
-
192
- ##### Returns
193
-
194
- `any`
195
-
196
- **`See`**
197
-
198
- https://v8.dev/docs/stack-trace-api#customizing-stack-traces
199
-
200
- #### Inherited from
201
-
202
- [AbstractError](AbstractError.md).[prepareStackTrace](AbstractError.md#preparestacktrace)
203
-
204
- #### Defined in
205
-
206
- ../node_modules/@types/node/globals.d.ts:11
207
-
208
- ---
209
-
210
- ### stackTraceLimit
211
-
212
- ▪ `Static` **stackTraceLimit**: `number`
213
-
214
- #### Inherited from
215
-
216
- [AbstractError](AbstractError.md).[stackTraceLimit](AbstractError.md#stacktracelimit)
217
-
218
- #### Defined in
219
-
220
- ../node_modules/@types/node/globals.d.ts:13
221
-
222
- ## Methods
223
-
224
- ### captureStackTrace
225
-
226
- ▸ **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
227
-
228
- Create .stack property on a target object
229
-
230
- #### Parameters
231
-
232
- | Name | Type |
233
- | :---------------- | :--------- |
234
- | `targetObject` | `object` |
235
- | `constructorOpt?` | `Function` |
236
-
237
- #### Returns
238
-
239
- `void`
240
-
241
- #### Inherited from
242
-
243
- [AbstractError](AbstractError.md).[captureStackTrace](AbstractError.md#capturestacktrace)
244
-
245
- #### Defined in
246
-
247
- ../node_modules/@types/node/globals.d.ts:4
248
-
249
- ---
250
-
251
- ### isAbstractError
252
-
253
- ▸ **isAbstractError**(`error`, `allowForeignModule?`): error is AbstractError
254
-
255
- Checks if an object is an instance of [AbstractError](AbstractError.md), or one of its subclasses.
256
-
257
- #### Parameters
258
-
259
- | Name | Type | Default value | Description |
260
- | :------------------- | :-------- | :------------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------- |
261
- | `error` | `unknown` | `undefined` | The object to check. |
262
- | `allowForeignModule` | `boolean` | `true` | Only check for similar looking error codes. You're going to want to use this if you're dealing with a setup where multiple versions of js-utils are loaded. |
263
-
264
- #### Returns
265
-
266
- error is AbstractError
267
-
268
- `true` if the object is an [AbstractError](AbstractError.md), `false` otherwise.
269
-
270
- #### Inherited from
271
-
272
- [AbstractError](AbstractError.md).[isAbstractError](AbstractError.md#isabstracterror)
273
-
274
- #### Defined in
275
-
276
- [errors/AbstractError.ts:58](https://github.com/oliversalzburg/js-utils/blob/293b24f/source/errors/AbstractError.ts#L58)