@appsemble/sdk
Advanced tools
Comparing version 0.13.7 to 0.13.8
@@ -90,7 +90,7 @@ import type { Promisable } from 'type-fest'; | ||
* | ||
* @param remapper The user defined remapper function. | ||
* @param data The data to remap. | ||
* @param remapper - The user defined remapper function. | ||
* @param data - The data to remap. | ||
* @returns The result of the remapped data. | ||
*/ | ||
remap(remapper: Remapper, data: any): any; | ||
remap: (remapper: Remapper, data: any) => any; | ||
/** | ||
@@ -103,3 +103,3 @@ * Show a bulma style message. | ||
* | ||
* @param assetId The id of the asset whose URL to get. | ||
* @param assetId - The id of the asset whose URL to get. | ||
* @returns The URL that matches the given asset id. | ||
@@ -113,4 +113,4 @@ */ | ||
* | ||
* @param type The type of event to emit. | ||
* @param data Data to emit with the event. | ||
* @param type - The type of event to emit. | ||
* @param data - Data to emit with the event. | ||
*/ | ||
@@ -123,4 +123,4 @@ emit: { | ||
* | ||
* @param type The type of event to listen remove the listener from. | ||
* @param callback The callback to remove. | ||
* @param type - The type of event to listen remove the listener from. | ||
* @param callback - The callback to remove. | ||
* @returns Boolean indicating whether a listener is implemented or not. | ||
@@ -134,4 +134,4 @@ */ | ||
* | ||
* @param type The type of event to listen on. | ||
* @param callback A callback to register for the event. | ||
* @param type - The type of event to listen on. | ||
* @param callback - A callback to register for the event. | ||
* @returns Boolean indicating whether a listener is implemented or not. | ||
@@ -187,9 +187,3 @@ */ | ||
} | ||
/** | ||
* @private | ||
*/ | ||
export declare type BootstrapFunction = (params: BootstrapParams) => Promisable<void>; | ||
/** | ||
* @private | ||
*/ | ||
export interface AppsembleBootstrapEvent extends CustomEvent { | ||
@@ -204,3 +198,3 @@ detail: { | ||
* | ||
* @param fn The bootstrap function to register | ||
* @param fn - The bootstrap function to register | ||
*/ | ||
@@ -214,4 +208,4 @@ export declare function bootstrap(fn: BootstrapFunction): void; | ||
* | ||
* @param fn The bootstrap function to register. | ||
* @param fn - The bootstrap function to register. | ||
*/ | ||
export declare function attach(fn: (params: BootstrapParams) => Promisable<HTMLElement | void>): void; |
@@ -0,1 +1,2 @@ | ||
// eslint-disable-next-line no-duplicate-imports | ||
export * from './types'; | ||
@@ -5,3 +6,3 @@ /** | ||
* | ||
* @param fn The bootstrap function to register | ||
* @param fn - The bootstrap function to register | ||
*/ | ||
@@ -25,4 +26,5 @@ export function bootstrap(fn) { | ||
* | ||
* @param fn The bootstrap function to register. | ||
* @param fn - The bootstrap function to register. | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type | ||
export function attach(fn) { | ||
@@ -33,3 +35,3 @@ bootstrap(async (params) => { | ||
if (node instanceof HTMLElement) { | ||
shadowRoot.appendChild(node); | ||
shadowRoot.append(node); | ||
} | ||
@@ -36,0 +38,0 @@ }); |
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
dispatch: (data?: any) => Promise<any>; | ||
dispatch: (data?: any) => Promise<unknown>; | ||
} | ||
@@ -26,3 +26,3 @@ export declare type RequestLikeActionTypes = 'request' | 'resource.create' | 'resource.delete' | 'resource.get' | 'resource.query' | 'resource.update'; | ||
*/ | ||
href: (data?: any) => string; | ||
href: (data?: unknown) => string; | ||
} | ||
@@ -29,0 +29,0 @@ export interface LogAction extends BaseAction<'log'> { |
{ | ||
"name": "@appsemble/sdk", | ||
"version": "0.13.7", | ||
"version": "0.13.8", | ||
"description": "Build your own blocks", | ||
@@ -16,3 +16,3 @@ "keywords": [ | ||
], | ||
"homepage": "https://appsemble.dev", | ||
"homepage": "https://appsemble.app", | ||
"bugs": "https://gitlab.com/appsemble/appsemble/issues", | ||
@@ -19,0 +19,0 @@ "repository": { |
@@ -20,4 +20,4 @@ # Appsemble SDK | ||
const root = document.createElement('span'); | ||
root.innerText = 'Hello world!'; | ||
shadowRoot.appendChild(root); | ||
root.textContent = 'Hello world!'; | ||
shadowRoot.append(root); | ||
}); | ||
@@ -33,3 +33,3 @@ ``` | ||
const root = document.createElement('span'); | ||
root.innerText = 'Hello world!'; | ||
root.textContent = 'Hello world!'; | ||
return root; | ||
@@ -36,0 +36,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
13707
1
367