@curvenote/schema
Version:
Schema and markdown parser for @curvenote/editor
16 lines (15 loc) • 566 B
TypeScript
import type { MdFormatSerialize, TexFormatSerialize } from '../serialize/types';
import type { Time } from '../spec';
import type { MyNodeSpec } from './types';
export declare function getDatetime(object?: Date | string | null): Date;
export declare function formatDatetime(datetime: string | Date | null): {
d: Date;
f: string;
};
export declare type Attrs = {
datetime: Date | null;
};
declare const time: MyNodeSpec<Attrs, Time>;
export declare const toMarkdown: MdFormatSerialize;
export declare const toTex: TexFormatSerialize;
export default time;