UNPKG

@rws-aoa/utils

Version:
63 lines (57 loc) 1.89 kB
export { capitalizeFirstLetter, snakeToCamelCase } from '@sapphire/utilities'; /** * Validates whether the current environment is either development or test */ declare const isDevEnv: boolean; /** * Validates whether the current environment is test */ declare const isTestEnv: boolean; /** * @deprecated use `secondsToMilliseconds` function from `date-fns` instead */ declare const SECOND = 1000; /** * @deprecated use `minutesToMilliseconds` function from `date-fns` instead */ declare const MINUTE: number; /** * @deprecated use `hoursToMilliseconds` function from `date-fns` instead */ declare const HOUR: number; /** * @deprecated use `hoursToMilliseconds` function from `date-fns` instead (multiply by 24) */ declare const DAY: number; /** * @deprecated This is unused in our applications and marked for removal */ declare const DAYS: string[]; /** * @deprecated This is unused in our applications and marked for removal */ declare const MONTHS: string[]; /** * @deprecated This is unused in our applications and marked for removal */ declare const DAYS_NL: string[]; /** * @deprecated This is unused in our applications and marked for removal */ declare const MONTHS_NL: string[]; /** * @deprecated Use `window.location.<property>` directly instead. * This class was once implemented to make code testable by mocking the outputs, * this is no longer necessary when using Vitest where mocking the global window is just as easy. */ declare class WindowLocationService { static get origin(): string; static get path(): string; static get hash(): string; static get search(): string; static get host(): string; static get href(): string; static redirectTo(url: string): void; private static getLocation; } export { DAY, DAYS, DAYS_NL, HOUR, MINUTE, MONTHS, MONTHS_NL, SECOND, WindowLocationService, isDevEnv, isTestEnv };