jsfast
Version:
Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.
19 lines (18 loc) • 671 B
TypeScript
import { createFastjsDate } from "./date";
import type { parseReturn } from "./def";
/**
* @description
* Create a FastjsDate instance
*/
declare const _default: {
parse: (time: string | number | Date, format?: string) => parseReturn;
parseTime: (time: number, format?: string) => parseReturn;
parseDate: (date: string, format?: string) => parseReturn;
string: (format?: string, date?: number) => string;
reformat: (format: string, date: string, newFormat?: string) => string;
now: (format?: string) => parseReturn;
create: typeof createFastjsDate;
};
export default _default;
export type * from "./def";
export type * from "./date-types";