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

Page

import type { Page } from "https://raw.githubusercontent.com/scrapbox-jp/types/0.3.3/userscript.ts";

window.scrapboxに露出しているPageの型

interface Page <T extends Layout> {
get id(): T extends "page" ? string : null;
get lines(): T extends "page" ? Line[] : null;
get title(): T extends "page" ? string : null;
}

§Type Parameters

§
T extends Layout
[src]

§Methods

§
get id(): T extends "page" ? string : null
[src]

get the current page id

§
get lines(): T extends "page" ? Line[] : null
[src]

get the current page lines data

§
get title(): T extends "page" ? string : null
[src]

get the current page title