Skip to content

Commit 13546e2

Browse files
Merge pull request #3 from codeAdityagithub/dev
Merge dev- performance improvements and size reduction
2 parents d9074d0 + 58a69f3 commit 13546e2

30 files changed

+1029
-1404
lines changed

build/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { JSXInternal } from './jsx';
77
export * from './jsx';
88
declare global {
99
export import JSX = JSXInternal;
10+
const FRAGMENT = "FRAGMENT";
1011
}
1112
export * from './types';
1213
export { cleanUp, createEffect, createSignal, render, createPromise, createRef, computed, createElement, lazy, ArraySignal, BaseSignal, ObjectSignal, PrimitiveSignal, PublicArraySignal, PublicObjectSignal, PublicSignal, Ref, };

build/jsx.d.ts

Lines changed: 3 additions & 236 deletions
Large diffs are not rendered by default.

build/lazy/Lazyloading.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import { ComponentChild } from '../index';
12
type PropsOf<T extends (...args: any) => any> = Parameters<T> extends [] ? {} : Parameters<T>[0];
23
export declare function lazy<T extends (props: any) => any>(importFn: () => Promise<{
34
default: T;
45
}>): (props: PropsOf<T> & {
5-
fallback?: string | Node;
6-
errorFallback?: string | Node | ((error: Error) => Node);
6+
fallback?: ComponentChild;
7+
errorFallback?: ComponentChild | ((error: Error) => ComponentChild);
78
}) => ReturnType<T>;
89
export {};

build/lib.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,4 @@ export declare function applyMoves<T>(arr: T[], moves: Record<string, {
66
from: number;
77
to: number;
88
}>): T[];
9-
/**
10-
* Computes the indices of the longest increasing subsequence in the given array.
11-
* @param arr - An array of numbers.
12-
* @returns An array of indices representing the longest increasing subsequence.
13-
*
14-
* Time Complexity: O(n log n)
15-
*/
169
export declare function longestIncreasingSubsequenceIndices(arr: number[]): number[];

build/refract.cjs.js

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

0 commit comments

Comments
 (0)