/opt/canhelp/node_modules/next/dist/lib/metadata
NameSizeModeActions
generate/-0755rm
resolvers/-0755rm
types/-0755rm
clone-metadata.d.ts1880644editdlrm
clone-metadata.js8180644editdlrm
clone-metadata.js.map14180644editdlrm
constants.d.ts2450644editdlrm
constants.js8680644editdlrm
constants.js.map10180644editdlrm
default-metadata.d.ts2200644editdlrm
default-metadata.js19160644editdlrm
default-metadata.js.map26970644editdlrm
get-metadata-route.d.ts6930644editdlrm
get-metadata-route.js47270644editdlrm
get-metadata-route.js.map72720644editdlrm
is-metadata-route.d.ts20270644editdlrm
is-metadata-route.js58940644editdlrm
is-metadata-route.js.map99760644editdlrm
metadata-context.d.ts2420644editdlrm
metadata-context.js4330644editdlrm
metadata-context.js.map6710644editdlrm
metadata.d.ts14320644editdlrm
metadata.js123100644editdlrm
metadata.js.map187450644editdlrm
resolve-metadata.d.ts18350644editdlrm
resolve-metadata.js324890644editdlrm
resolve-metadata.js.map529970644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/lib/metadata/is-metadata-route.d.ts (2027B)
import type { PageExtensions } from '../../build/page-extensions-type'; export declare const STATIC_METADATA_IMAGES: { readonly icon: { readonly filename: "icon"; readonly extensions: readonly ["ico", "jpg", "jpeg", "png", "svg"]; }; readonly apple: { readonly filename: "apple-icon"; readonly extensions: readonly ["jpg", "jpeg", "png"]; }; readonly favicon: { readonly filename: "favicon"; readonly extensions: readonly ["ico"]; }; readonly openGraph: { readonly filename: "opengraph-image"; readonly extensions: readonly ["jpg", "jpeg", "png", "gif"]; }; readonly twitter: { readonly filename: "twitter-image"; readonly extensions: readonly ["jpg", "jpeg", "png", "gif"]; }; }; export declare const DEFAULT_METADATA_ROUTE_EXTENSIONS: string[]; export declare const getExtensionRegexString: (staticExtensions: readonly string[], dynamicExtensions: readonly string[] | null) => string; /** * Determine if the file is a metadata route file entry * @param appDirRelativePath the relative file path to app/ * @param pageExtensions the js extensions, such as ['js', 'jsx', 'ts', 'tsx'] * @param strictlyMatchExtensions if it's true, match the file with page extension, otherwise match the file with default corresponding extension * @returns if the file is a metadata route file */ export declare function isMetadataRouteFile(appDirRelativePath: string, pageExtensions: PageExtensions, strictlyMatchExtensions: boolean): boolean; export declare function isStaticMetadataRoute(route: string): boolean; /** * Determine if a page or pathname is a metadata page. * * The input is a page or pathname, which can be with or without page suffix /foo/page or /foo. * But it will not contain the /route suffix. * * .e.g * /robots -> true * /sitemap -> true * /foo -> false */ export declare function isMetadataPage(page: string): boolean; export declare function isMetadataRoute(route: string): boolean;