swc-plugin-jsx-control-statements
Version:
SWC plugin for jsx-control-statements
23 lines (16 loc) • 676 B
TypeScript
declare type ConditionalTagProps = { condition: boolean, children: React.ReactNode };
declare function Choose(props: { children: React.ReactNode }): any;
declare function When(props: ConditionalTagProps): any;
declare function Otherwise(props: { children: React.ReactNode }): any;
declare function If(props: ConditionalTagProps): any;
declare function For<T>(props: {
each: string;
of: Iterable<T>;
index?: string;
children: React.ReactNode
}): any;
declare function For<T>(props: {
of: Iterable<T>;
body: (item: T, index?: number) => React.ReactNode;
}): any;
declare function With(props: { [id: string]: any, children: React.ReactNode }): any;