/home/techb158/balavpn.abdallabala.com/node_modules/@next/eslint-plugin-next/dist/utils
NameSizeModeActions
define-rule.d.ts1130666editdlrm
define-rule.js2630666editdlrm
get-root-dirs.d.ts1830666editdlrm
get-root-dirs.js9160666editdlrm
node-attributes.d.ts3260666editdlrm
node-attributes.js36420666editdlrm
url.d.ts12980666editdlrm
url.js88970666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/@next/eslint-plugin-next/dist/utils/url.d.ts (1298B)
/** * Takes a URL and does the following things. * - Replaces `index.html` with `/` * - Makes sure all URLs are have a trailing `/` * - Removes query string */ export declare function normalizeURL(url: string): string; /** * Normalizes an app route so it represents the actual request path. Essentially * performing the following transformations: * * - `/(dashboard)/user/[id]/page` to `/user/[id]` * - `/(dashboard)/account/page` to `/account` * - `/user/[id]/page` to `/user/[id]` * - `/account/page` to `/account` * - `/page` to `/` * - `/(dashboard)/user/[id]/route` to `/user/[id]` * - `/(dashboard)/account/route` to `/account` * - `/user/[id]/route` to `/user/[id]` * - `/account/route` to `/account` * - `/route` to `/` * - `/` to `/` * * @param route the app route to normalize * @returns the normalized pathname */ export declare function normalizeAppPath(route: string): string; /** * Gets the possible URLs from a directory. */ export declare function getUrlFromPagesDirectories(urlPrefix: string, directories: string[]): RegExp[]; export declare function getUrlFromAppDirectory(urlPrefix: string, directories: string[]): RegExp[]; export declare function execOnce(fn: (...args: TArgs) => TResult): (...args: TArgs) => TResult;