UNPKG

@bothive/helpers

Version:

Collection of helper functions mainly used inside bothive-core project

29 lines (28 loc) 1.14 kB
declare function isEmptyString(value: string | undefined | null): boolean; declare function firstToUppercase(string: string): string; declare function createQueryString(params: { [keys: string]: unknown; }): string; declare function encodeToBase64(string: string): string; declare function encodeObject(payload: { [key: string]: unknown; }): string; declare function formatCompanyNumber(companyNumber: string): string; declare function replaceTemplates({ string, payload }: { string: string; payload?: unknown; }): string; declare function isBothiveInternetId(internetId: string): boolean; declare function convertBoolean(value?: string | boolean): boolean; declare const _default: { isEmptyString: typeof isEmptyString; firstToUppercase: typeof firstToUppercase; createQueryString: typeof createQueryString; encodeToBase64: typeof encodeToBase64; encodeObject: typeof encodeObject; replaceTemplates: typeof replaceTemplates; formatCompanyNumber: typeof formatCompanyNumber; isBothiveInternetId: typeof isBothiveInternetId; convertBoolean: typeof convertBoolean; }; export default _default;