Download chakra-ui/packages/react/src/utils/interop.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 93 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/interop.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/interop.ts
-
curl -L -o interop.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/chakra-ui/packages/react/src/utils/interop.ts
93 Bytes
| export function interopDefault<T>(mod: T): T { | |
| return (mod as any).default || (mod as T) | |
| } | |