Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@emotion/styled/src/jsx-namespace.ts from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/styled/src/jsx-namespace.ts
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/@emotion/styled/src/jsx-namespace.ts
-
curl -L -o jsx-namespace.ts https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/c9f908872ebbec3c4fa1392419c0f6cd3750ddb3/frontend/node_modules/%40emotion/styled/src/jsx-namespace.ts
608 Bytes
| // this is basically a slimmed down copy of https://github.com/emotion-js/emotion/blob/main/packages/react/types/jsx-namespace.d.ts | |
| // it helps to avoid issues when combining newer `@emotion/styled` and older `@emotion/react` versions | |
| // in such setup, ReactJSX namespace won't exist in `@emotion/react` and that would lead to errors | |
| import 'react' | |
| type IsPreReact19 = 2 extends Parameters<React.FunctionComponent<any>>['length'] | |
| ? true | |
| : false | |
| // prettier-ignore | |
| /** @ts-ignore */ | |
| export type ReactJSXIntrinsicElements = true extends IsPreReact19 ? JSX.IntrinsicElements : React.JSX.IntrinsicElements | |