类型别名: ReactLynxChildren
ReactLynxChildren =
Omit<typeofPreactChildren,"map"|"forEach"|"toArray"> &object
ReactLynx children 工具的类型。
类型声明
forEach()
forEach<
TextendsComponentChild,R>(children:T|T[],fn: (child:T,index:number) =>R): readonlyR[] |null
类型参数
参数
返回
readonly R[] | null
map()
map<
TextendsComponentChild,R>(children:T|T[],fn: (child:T,index:number) =>R): readonlyR[] |null
类型参数
参数
返回
readonly R[] | null
toArray()
toArray(
children:ComponentChildren): readonlyVNode<{ }>[]
参数
返回
readonly VNode<{ }>[]