Initial boiler plate project
This commit is contained in:
42
node_modules/next/dist/build/webpack/loaders/next-app-loader.d.ts
generated
vendored
Normal file
42
node_modules/next/dist/build/webpack/loaders/next-app-loader.d.ts
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
import type webpack from 'next/dist/compiled/webpack/webpack';
|
||||
import { type ValueOf } from '../../../shared/lib/constants';
|
||||
import type { ModuleReference, CollectedMetadata } from './metadata/types';
|
||||
import type { NextConfig } from '../../../server/config-shared';
|
||||
import type { PageExtensions } from '../../page-extensions-type';
|
||||
export type AppLoaderOptions = {
|
||||
name: string;
|
||||
page: string;
|
||||
pagePath: string;
|
||||
appDir: string;
|
||||
appPaths: readonly string[] | null;
|
||||
preferredRegion: string | string[] | undefined;
|
||||
pageExtensions: PageExtensions;
|
||||
assetPrefix: string;
|
||||
rootDir?: string;
|
||||
tsconfigPath?: string;
|
||||
isDev?: boolean;
|
||||
basePath: string;
|
||||
nextConfigOutput?: NextConfig['output'];
|
||||
nextConfigExperimentalUseEarlyImport?: boolean;
|
||||
middlewareConfig: string;
|
||||
};
|
||||
type AppLoader = webpack.LoaderDefinitionFunction<AppLoaderOptions>;
|
||||
declare const FILE_TYPES: {
|
||||
readonly layout: "layout";
|
||||
readonly template: "template";
|
||||
readonly error: "error";
|
||||
readonly loading: "loading";
|
||||
readonly 'not-found': "not-found";
|
||||
};
|
||||
export type MetadataResolver = (dir: string, filename: string, extensions: readonly string[]) => Promise<string | undefined>;
|
||||
export type ComponentsType = {
|
||||
readonly [componentKey in ValueOf<typeof FILE_TYPES>]?: ModuleReference;
|
||||
} & {
|
||||
readonly page?: ModuleReference;
|
||||
} & {
|
||||
readonly metadata?: CollectedMetadata;
|
||||
} & {
|
||||
readonly defaultPage?: ModuleReference;
|
||||
};
|
||||
declare const nextAppLoader: AppLoader;
|
||||
export default nextAppLoader;
|
||||
Reference in New Issue
Block a user