(
props: DrawerProps<T>
)
| 49 | } |
| 50 | |
| 51 | function isFunction<T extends readOnlyTab>( |
| 52 | props: DrawerProps<T> |
| 53 | ): props is DrawerProps<T> & { children: (key: string) => React.ReactNode } { |
| 54 | return typeof props.children === 'function'; |
| 55 | } |
| 56 | |
| 57 | function isTabMode<T extends readOnlyTab>(props: DrawerProps<T>): props is DrawerProps<T> { |
| 58 | return 'tabs' in props; |