@appsemble/sdk 0.25.2 → 0.27.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.
- package/README.md +3 -3
- package/index.d.ts +8 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#  Appsemble SDK
|
|
2
2
|
|
|
3
3
|
> Build your own blocks
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/sdk)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.27.0)
|
|
7
7
|
[](https://prettier.io)
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
@@ -153,5 +153,5 @@ declare module '@appsemble/sdk' {
|
|
|
153
153
|
|
|
154
154
|
## License
|
|
155
155
|
|
|
156
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.
|
|
156
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.27.0/LICENSE.md) ©
|
|
157
157
|
[Appsemble](https://appsemble.com)
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Action, type BaseMessage, type BulmaColor, type BulmaSize, type Theme } from '@appsemble/types';
|
|
1
|
+
import { type Action, type ActionError, type BaseMessage, type BulmaColor, type BulmaSize, type Theme } from '@appsemble/types';
|
|
2
2
|
import { type IconName } from '@fortawesome/fontawesome-common-types';
|
|
3
3
|
import { type Promisable } from 'type-fest';
|
|
4
4
|
export { type IconName };
|
|
@@ -135,6 +135,13 @@ export interface Utils {
|
|
|
135
135
|
* Use this to clean up resouces that would otherwise stay in memory, e.g. object URLs.
|
|
136
136
|
*/
|
|
137
137
|
addCleanup: (fn: () => void) => void;
|
|
138
|
+
/**
|
|
139
|
+
* Test if the input is an action error.
|
|
140
|
+
*
|
|
141
|
+
* @param input The input to test
|
|
142
|
+
* @returns Whether or not the input is an action error.
|
|
143
|
+
*/
|
|
144
|
+
isActionError: (input: unknown) => input is ActionError;
|
|
138
145
|
/**
|
|
139
146
|
* Remap data based in a user defined remapper function.
|
|
140
147
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Build your own blocks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"test": "vitest"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@appsemble/types": "0.
|
|
44
|
+
"@appsemble/types": "0.27.0",
|
|
45
45
|
"@fortawesome/fontawesome-common-types": "^6.0.0",
|
|
46
46
|
"type-fest": "^4.0.0"
|
|
47
47
|
},
|