Download next.js/packages/next/src/server/app-render/rsc/taint.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 787 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/app-render/rsc/taint.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/server/app-render/rsc/taint.ts
-
curl -L -o taint.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/server/app-render/rsc/taint.ts
787 Bytes
| /* | |
| Files in the rsc directory are meant to be packaged as part of the RSC graph using next-app-loader. | |
| */ | |
| import * as React from 'react' | |
| type Reference = object | |
| type TaintableUniqueValue = string | bigint | ArrayBufferView | |
| function notImplemented() { | |
| throw new Error('Taint can only be used with the taint flag.') | |
| } | |
| export const taintObjectReference: ( | |
| message: string | undefined, | |
| object: Reference | |
| ) => void = process.env.__NEXT_EXPERIMENTAL_REACT | |
| ? // @ts-ignore | |
| React.experimental_taintObjectReference | |
| : notImplemented | |
| export const taintUniqueValue: ( | |
| message: string | undefined, | |
| lifetime: Reference, | |
| value: TaintableUniqueValue | |
| ) => void = process.env.__NEXT_EXPERIMENTAL_REACT | |
| ? // @ts-ignore | |
| React.experimental_taintUniqueValue | |
| : notImplemented | |