element-vir 8.0.0 → 8.0.2
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.
|
@@ -4,7 +4,7 @@ export declare function renderAsyncProp<T>({ asyncProp, fallback, resolutionRend
|
|
|
4
4
|
asyncProp: AsyncProp<T>;
|
|
5
5
|
/** This value will be rendered if the async state has not settled yet. */
|
|
6
6
|
fallback: unknown;
|
|
7
|
-
resolutionRender
|
|
8
|
-
errorRender?: (error: Error) => unknown;
|
|
7
|
+
resolutionRender?: ((resolved: UnPromise<T>) => unknown) | undefined;
|
|
8
|
+
errorRender?: ((error: Error) => unknown) | undefined;
|
|
9
9
|
}): unknown;
|
|
10
10
|
//# sourceMappingURL=render-async-prop.directive.d.ts.map
|
|
@@ -4,7 +4,7 @@ export function renderAsyncProp({ asyncProp, fallback, resolutionRender, errorRe
|
|
|
4
4
|
return errorRender ? errorRender(asyncProp.error) : extractErrorMessage(asyncProp.error);
|
|
5
5
|
}
|
|
6
6
|
else if (asyncProp === null || asyncProp === void 0 ? void 0 : asyncProp.resolution) {
|
|
7
|
-
return resolutionRender(asyncProp.resolution);
|
|
7
|
+
return resolutionRender ? resolutionRender(asyncProp.resolution) : asyncProp.resolution;
|
|
8
8
|
}
|
|
9
9
|
else {
|
|
10
10
|
return fallback;
|
|
@@ -4,7 +4,7 @@ export type WrapDefineElementOptions<TagNameRequirementGeneric extends CustomEle
|
|
|
4
4
|
assertInputs: (inputInit: DeclarativeElementInit<TagNameRequirementGeneric, InputsRequirementGeneric, StateInitRequirementGeneric, EventsInitRequirementGeneric, HostClassKeysRequirementGeneric, CssVarKeysRequirementGeneric>) => void;
|
|
5
5
|
transformInputs: (inputInit: DeclarativeElementInit<TagNameRequirementGeneric, InputsRequirementGeneric, StateInitRequirementGeneric, EventsInitRequirementGeneric, HostClassKeysRequirementGeneric, CssVarKeysRequirementGeneric>) => DeclarativeElementInit<TagNameRequirementGeneric, InputsRequirementGeneric, StateInitRequirementGeneric, EventsInitRequirementGeneric, HostClassKeysRequirementGeneric, CssVarKeysRequirementGeneric>;
|
|
6
6
|
}>;
|
|
7
|
-
export declare function wrapDefineElement<TagNameRequirementGeneric extends CustomElementTagName = CustomElementTagName, InputsRequirementGeneric extends PropertyInitMapBase = {}, StateInitRequirementGeneric extends PropertyInitMapBase = {}, EventsInitRequirementGeneric extends EventsInitMap = {}, HostClassKeysRequirementGeneric extends string =
|
|
7
|
+
export declare function wrapDefineElement<TagNameRequirementGeneric extends CustomElementTagName = CustomElementTagName, InputsRequirementGeneric extends PropertyInitMapBase = {}, StateInitRequirementGeneric extends PropertyInitMapBase = {}, EventsInitRequirementGeneric extends EventsInitMap = {}, HostClassKeysRequirementGeneric extends string = string, CssVarKeysRequirementGeneric extends string = string>(options?: WrapDefineElementOptions | undefined): {
|
|
8
8
|
defineElement: <InputsGeneric extends InputsRequirementGeneric>() => <TagNameGeneric extends TagNameRequirementGeneric, StateInitGeneric extends StateInitRequirementGeneric, EventsInitGeneric extends EventsInitRequirementGeneric, HostClassKeysGeneric extends HostClassKeysRequirementGeneric, CssVarKeysGeneric extends CssVarKeysRequirementGeneric>(inputs: DeclarativeElementInit<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeysGeneric, CssVarKeysGeneric>) => import("./declarative-element").DeclarativeElementDefinition<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeysGeneric, CssVarKeysGeneric>;
|
|
9
9
|
defineElementNoInputs: <TagNameGeneric_1 extends TagNameRequirementGeneric, InputsGeneric_1 extends InputsRequirementGeneric, StateInitGeneric_1 extends StateInitRequirementGeneric, EventsInitGeneric_1 extends EventsInitRequirementGeneric, HostClassKeysGeneric_1 extends HostClassKeysRequirementGeneric, CssVarKeysGeneric_1 extends CssVarKeysRequirementGeneric>(inputs: DeclarativeElementInit<TagNameGeneric_1, InputsGeneric_1, StateInitGeneric_1, EventsInitGeneric_1, HostClassKeysGeneric_1, CssVarKeysGeneric_1>) => import("./declarative-element").DeclarativeElementDefinition<TagNameGeneric_1, InputsGeneric_1, StateInitGeneric_1, EventsInitGeneric_1, HostClassKeysGeneric_1, CssVarKeysGeneric_1>;
|
|
10
10
|
};
|