MCPcopy Create free account
hub / github.com/DTStack/dt-react-component / isFunction

Function isFunction

src/drawer/index.tsx:51–55  ·  view source on GitHub ↗
(
    props: DrawerProps<T>
)

Source from the content-addressed store, hash-verified

49}
50
51function 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
57function isTabMode<T extends readOnlyTab>(props: DrawerProps<T>): props is DrawerProps<T> {
58 return 'tabs' in props;

Callers 1

DrawerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected