UNPKG

779 BTypeScriptView Raw
1/**
2 * Checks if file or folder name contains invalid characters
3 *
4 * @param input File or folder name to check
5 * @param onPremise Set to true for SharePoint On-Premise
6 * @returns True if contains invalid chars, false otherwise
7 */
8export declare function containsInvalidFileFolderChars(input: string, onPremise?: boolean): boolean;
9/**
10 * Removes invalid characters from file or folder name
11 *
12 * @param input File or folder name
13 * @param replacer Value that will replace invalid characters
14 * @param onPremise Set to true for SharePoint On-Premise
15 * @returns File or folder name with replaced invalid characters
16 */
17export declare function stripInvalidFileFolderChars(input: string, replacer?: string, onPremise?: boolean): string;
18//# sourceMappingURL=file-names.d.ts.map
\No newline at end of file