@kwiz/common
Version:
KWIZ common utilities and helpers for M365 platform
20 lines (19 loc) • 814 B
TypeScript
export declare const ImageFileTypes: string[];
export declare const DocumentFileTypes: string[];
export declare const VideoFileTypes: string[];
export declare const OfficeFileTypes: string[];
export declare function validateFilename(fileNameWithExtension: string): {
hasIllegalCharacter: boolean;
hasIllegalName: boolean;
valid: boolean;
};
export declare function validateFoldername(folderName: string): {
hasIllegalCharacter: boolean;
hasIllegalName: boolean;
valid: boolean;
};
export declare function validateAndSetFilename(fileNameWithExtension: string): string;
export declare function getFileExtension(fileName: string, options?: {
/** send to to return "" when fileName does not have an extension, otherwise it returns the fileName */
emptyIfMissing?: boolean;
}): string;