Download next.js/test/e2e/app-dir/actions/app/catching-error/actions.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 144 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/catching-error/actions.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/catching-error/actions.ts
-
curl -L -o actions.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/catching-error/actions.ts
144 Bytes
| 'use server' | |
| export async function getServerData() { | |
| return Math.random() | |
| } | |
| export async function badAction() { | |
| throw new Error('oops') | |
| } | |