@jamesives/github-sponsors-readme-action
Version:
This GitHub Action will automatically add your GitHub Sponsors to your README. It can be configured in multiple ways allowing you to display and breakdown your sponsors by price tier with fallbacks.
26 lines (25 loc) • 938 B
TypeScript
import { ActionInterface } from './constants';
/**
* Utility function that checks to see if a value is undefined or not.
*/
export declare const isNullOrUndefined: (value: string | undefined | null) => boolean;
/**
* Verifies the action has the required parameters to run, otherwise throw an error.
*/
export declare const checkParameters: (action: ActionInterface) => void;
/**
* Replaces all instances of a match in a string.
*/
export declare const replaceAll: (input: string, find: string, replace: string) => string;
/**
* Suppresses sensitive information from being exposed in error messages.
*/
export declare const suppressSensitiveInformation: (str: string, action: ActionInterface) => string;
/**
* Extracts error message from an error.
*/
export declare const extractErrorMessage: (error: unknown) => string;
/**
* Sanitizes and cleans an input.
*/
export declare const sanitizeAndClean: (input: string) => string;