valid-directory
Version:
Check whether or not a directory and its descendants are valid
7 lines • 435 B
TypeScript
/** Array of paths that are invalid */
export type Paths = string[];
/** Whether or not the directory was valid */
export type ValidateResult = [valid: false, invalidRelativePaths: Paths, relativePaths: Paths] | [valid: true, invalidRelativePaths: [], relativePaths: Paths];
/** Validate a directory and its descendants */
export default function validate(fullPath: string): Promise<ValidateResult>;
//# sourceMappingURL=index.d.ts.map