UNPKG

@mintlify/link-rot

Version:

Static checking for broken internal links

18 lines (17 loc) 1.17 kB
import { ParsedPath } from 'path'; export declare const isValidPage: (filePath: ParsedPath) => boolean; export declare const isValidMedia: (filePath: ParsedPath) => boolean; export declare const isValidLink: (filePath: ParsedPath) => boolean; export declare const filterNotNodeModules: (fileList: string[]) => ParsedPath[]; export declare const filterPages: (fileList: string[]) => ParsedPath[]; export declare const filterMedia: (fileList: string[]) => ParsedPath[]; export declare const filterLinks: (fileList: string[]) => ParsedPath[]; export declare const getFullPath: (filePath: ParsedPath) => string; export declare const removeFileExtension: (filePath: ParsedPath) => string; export declare const addLeadingSlash: (filePathString: string) => string; export declare const removeSelectors: (filePathString: string) => string; export declare const getPagePaths: (dirName: string) => string[]; export declare const getMediaPaths: (dirName: string) => string[]; export declare const getLinkPaths: (dirName: string) => string[]; export declare const normalizePath: (path: string) => string; export declare const removeLeadingSlash: (filePathString: string) => string;