@wixc3/board-core
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "@wixc3/board-core", | ||
"description": "Types and helpers for component boards", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -14,3 +14,3 @@ import type { IRenderableMetadataBase } from './types'; | ||
render: (target: HTMLElement) => Promise<() => void>, | ||
canvas: HTMLElement | ||
canvas: HTMLElement, | ||
): Promise<() => void> { | ||
@@ -24,3 +24,3 @@ callHooks<IRenderableMetadataBase, 'beforeRender'>(data, 'beforeRender', canvas); | ||
export function createRenderableBase<DATA extends IRenderableMetadataBase>( | ||
data: OmitIRenderableMetadataBase<DATA> | ||
data: OmitIRenderableMetadataBase<DATA>, | ||
): DATA { | ||
@@ -27,0 +27,0 @@ const res: DATA = createMetadata({ |
@@ -7,3 +7,3 @@ import type { IGeneralMetadata, PluginInfo, Plugin, HookMap, HOOK } from './types'; | ||
data: DATA, | ||
hookName: HookNames<DATA> | ||
hookName: HookNames<DATA>, | ||
): PluginInfo<unknown, DATA, Plugin<unknown, DATA>>[] { | ||
@@ -10,0 +10,0 @@ if (!data.plugins) { |
@@ -68,3 +68,3 @@ export type LayoutSize = number | undefined | null; | ||
TARGET extends IGeneralMetadata<HookMap>, | ||
SYMB extends Plugin<PLUGINPARAMS, TARGET> | ||
SYMB extends Plugin<PLUGINPARAMS, TARGET>, | ||
> { | ||
@@ -94,3 +94,3 @@ key: SYMB; | ||
plugin: ReplaceParams<NonNullable<TARGET['__hooks']>, PluginProps>, | ||
merge: (params: PluginProps[]) => PluginProps[] = defaultMerge | ||
merge: (params: PluginProps[]) => PluginProps[] = defaultMerge, | ||
): Plugin<PluginProps, TARGET> => { | ||
@@ -156,3 +156,3 @@ const res: Plugin<PluginProps, TARGET> = { | ||
board: IRenderableMetadataBase, | ||
parentElement: HTMLElement | ||
parentElement: HTMLElement, | ||
) => { | ||
@@ -159,0 +159,0 @@ canvas: HTMLElement; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
45309