-
Notifications
You must be signed in to change notification settings - Fork 63
/
index.d.ts
15 lines (15 loc) · 632 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare function Choose(props: { children: React.ReactNode }): any;
declare function When(props: { condition: boolean, children: React.ReactNode }): any;
declare function Otherwise(props: { children: React.ReactNode }): any;
declare function If(props: { condition: boolean, children: React.ReactNode }): 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;