hono
Version:
Web framework built on Web Standards
10 lines (9 loc) • 429 B
TypeScript
import type { Child } from './base';
export declare const toArray: (children: Child) => Child[];
export declare const Children: {
map: (children: Child[], fn: (child: Child, index: number) => Child) => Child[];
forEach: (children: Child[], fn: (child: Child, index: number) => void) => void;
count: (children: Child[]) => number;
only: (_children: Child[]) => Child;
toArray: (children: Child) => Child[];
};