UNPKG

@accounter/server

Version:

The test suite is split into three Vitest projects for efficiency and isolation:

17 lines (16 loc) 946 B
import type { TimelessDateString } from '../types/index.js'; export declare function stringNumberRounded(number: string): number; export declare function numberRounded(number: number): number; export declare function isTimelessDateString(date: string): date is TimelessDateString; export declare function isUUID(raw: string): boolean; /** * @description * Extract month from description * @param rawDescription string - description to extract month from * @param eventDate Date - optional, if provided, will use it to determine year * @returns month in format yyyy-mm, else null */ export declare function getMonthFromDescription(rawDescription: string, eventDate?: Date): string[] | null; export declare function dateToTimelessDateString(date: Date): TimelessDateString; export declare function optionalDateToTimelessDateString(date?: Date | null): TimelessDateString | null; export declare function hashStringToInt(text: string): number;