@daks.dev/svelte.sdk
Version:
DAKS.DEV Svelte SDK
14 lines (13 loc) • 501 B
TypeScript
import type { HTMLTimeAttributes } from 'svelte/elements';
type Props = Omit<HTMLTimeAttributes, 'class'> & {
class?: ClassName;
parse: string;
date: string | Date;
locale?: 'en-US' | 'ru-RU';
year?: 'numeric' | '2-digit';
month?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow';
day?: 'numeric' | '2-digit';
};
declare const FormattedDate: import("svelte").Component<Props, {}, "">;
type FormattedDate = ReturnType<typeof FormattedDate>;
export default FormattedDate;