Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ExportedPage

import type { ExportedPage } from "https://raw.githubusercontent.com/scrapbox-jp/types/0.1.2/mod.ts";

exportもしくはbackupをとったときのページデータ

interface ExportedPage <hasMetadata extends true | false = false> {
created: number;
id: string;
lines: hasMetadata extends true ? Omit<Line, "id" | "userId">[] : string[];
title: string;
updated: number;
}

§Type Parameters

§
hasMetadata extends true | false = false
[src]

§Properties

§
created: number
[src]

ページの最終作成日時 (UNIX時刻)

§
id: string
[src]

page ID

§
lines: hasMetadata extends true ? Omit<Line, "id" | "userId">[] : string[]
[src]

ページ本文

hasMetadata === trueのときは行のmetadataが入る それ以外の場合は行のテキストが入る

§
title: string
[src]

page's title

§
updated: number
[src]

ページの最終更新日時 (UNIX時刻)