github-pages-deploy-action/lib/util.d.ts
2021-11-18 12:58:07 +00:00

11 lines
741 B
TypeScript

import { ActionInterface } from './constants';
export declare const isNullOrUndefined: (value: unknown, allowEmptyString?: boolean) => boolean;
export declare const generateTokenType: (action: ActionInterface) => string;
export declare const generateRepositoryPath: (action: ActionInterface) => string;
export declare const generateFolderPath: (action: ActionInterface) => string;
export declare const checkParameters: (action: ActionInterface) => void;
export declare const suppressSensitiveInformation: (str: string, action: ActionInterface) => string;
export declare const extractErrorMessage: (error: unknown) => string;
/** Strips the protocol from a provided URL. */
export declare const stripProtocolFromUrl: (url: string) => string;