Skip to content

Commit 58a69f3

Browse files
build for new version- performance improvements and smaller bundle size
1 parent 5f0e606 commit 58a69f3

File tree

11 files changed

+844
-1390
lines changed

11 files changed

+844
-1390
lines changed

build/lazy/Lazyloading.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ComponentChildren } from '../index';
1+
import { ComponentChild } from '../index';
22
type PropsOf<T extends (...args: any) => any> = Parameters<T> extends [] ? {} : Parameters<T>[0];
33
export declare function lazy<T extends (props: any) => any>(importFn: () => Promise<{
44
default: T;
55
}>): (props: PropsOf<T> & {
6-
fallback?: ComponentChildren;
7-
errorFallback?: ComponentChildren | ((error: Error) => ComponentChildren);
6+
fallback?: ComponentChild;
7+
errorFallback?: ComponentChild | ((error: Error) => ComponentChild);
88
}) => ReturnType<T>;
99
export {};

build/refract.cjs.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/refract.cjs.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)