Download next.js/test/development/app-dir/source-mapping/app/actions1.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 454 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/source-mapping/app/actions1.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/source-mapping/app/actions1.ts
-
curl -L -o actions1.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/source-mapping/app/actions1.ts
454 Bytes
| 'use server' | |
| export const foo = async () => { | |
| return 'exported exported arrow function expression' | |
| } | |
| export async function bar() { | |
| return 'exported named function declaration' | |
| } | |
| export const baz = async function () { | |
| return 'exported anonymous function expression' | |
| } | |
| export const qux = async function quux() { | |
| return 'exported named function expression' | |
| } | |
| export default async () => { | |
| return 'default exported arrow function expression' | |
| } | |