woby
Version:
A high-performance framework with fine-grained observable/signal-based reactivity for building rich applications.
15 lines • 641 B
TypeScript
import type { Child, FunctionMaybe, Indexed, ObservableReadonly } from '../types';
declare function For<T>({ values, fallback, unkeyed, children }: {
values: FunctionMaybe<readonly T[]>;
fallback?: Child;
unkeyed?: false;
children: ((value: T, index: FunctionMaybe<number>) => Child);
}): ObservableReadonly<Child>;
declare function For<T>({ values, fallback, unkeyed, children }: {
values: FunctionMaybe<readonly T[]>;
fallback?: Child;
unkeyed: true;
children: ((value: Indexed<T>, index: FunctionMaybe<number>) => Child);
}): ObservableReadonly<Child>;
export default For;
//# sourceMappingURL=for.d.ts.map