Download frontend/node_modules/next/dist/server/lib/app-dir-module.d.ts from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/app-dir-module.d.ts
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/server/lib/app-dir-module.d.ts
-
curl -L -o app-dir-module.d.ts https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/app-dir-module.d.ts
623 Bytes
| import type { AppDirModules } from '../../build/webpack/loaders/next-app-loader'; | |
| /** | |
| * LoaderTree is generated in next-app-loader. | |
| */ | |
| export type LoaderTree = [ | |
| segment: string, | |
| parallelRoutes: { | |
| [parallelRouterKey: string]: LoaderTree; | |
| }, | |
| modules: AppDirModules | |
| ]; | |
| export declare function getLayoutOrPageModule(loaderTree: LoaderTree): Promise<{ | |
| mod: any; | |
| modType: "page" | "layout" | undefined; | |
| filePath: string | undefined; | |
| }>; | |
| export declare function getComponentTypeModule(loaderTree: LoaderTree, moduleType: 'layout' | 'not-found' | 'forbidden' | 'unauthorized'): Promise<any>; | |