interface DumpDraft

Saved by DumpCreateModal on every change, and restored when it next opens without a shared link. Posting the dump clears it.

Properties

url: string

As typed, not yet normalized.

title: string

Whether the poster typed title. When not, the modal takes the title from the link's preview again.

comment: string

In Markdown.

isPublic: boolean
categoryIds: string[]

Usage

import { type DumpDraft } from "src/utils/dump/draft.ts";