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

Usage

import * as types from "https://raw.githubusercontent.com/scrapbox-jp/types/0.1.2/mod.ts";

§Classes

EventEmitter

The EventEmitter class is defined and exposed by the events module:

PageMenu

§Interfaces

BadRequestError

URL先ページから正常な応答が返ってこなかったときのエラー

Block

the type which represents a line in a block

CodeBlock

the type which represents a line in a code block

ErrorLike

Scrapbox REST APIが返すエラーの型

ExportedData
ExportedPage

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

GuestUser
ImportedData

JSON data for importing by https://scrapbox.io/api/page-data/import/:projectname.json

ImportedLightPage

メタデータ無しインポート用ページデータ

ImportedLine

インポート用メタデータ付き行データ

ImportedPage

メタデータ付きインポート用ページデータ

InvalidURLError

不正なURLを渡したときに返ってくるエラー

MemberProject

project information which is joined

MemberUser
NotFoundError

指定したprojectやpageが見つからないときに発生するエラー

NotLoggedInError

Loginが必要なAPIをloginせずに叩いたときに発生するエラー

NotMemberError

参加していないprivate projectに対してAPIを叩いたときに発生するエラー

NotMemberProject

project information which isn't joined

NotPrivilegeError

owner/admin権限が不足しているときに発生するエラー

Page

page information

PageBrief
PageList

the response type of https://scrpabox.io/api/pages/:projectname

PageSummary

summary of page information

RelatedPage

関連ページのメタデータ

SearchedTitle

the response type of https://scrapbox.io/api/pages/:projectname/search/titles

SessionError

CSRF tokenが不正なときに発生するエラー

TableBlock

the type which represents a line in a table block

TimeStamp
TweetInfo

the response type of /api/embed-text/twitter

User

user information

UserInfo

user detailed information

§Type Aliases

AddMenuInit
Audio
AudioLink
Blank
Cli
Code
Decoration
eventName

built-in UserScript events

Formula
GoogleMap
Gyazo
GyazoLink
Helpfeel
Icon
Image
ImageLink
Indent
Item
Layout
Link
Menu
Node
NodeWithoutIndent
ParsedLine
PartialLayout
PlainText
Quote
Scrapbox
StringLc

the formatted string

Strong
StrongGyazo
StrongGyazoLink
StrongIcon
StrongImage
StrongImageLink
Url
UrlLink
UserResponse

the response type of https://scrapbox.io/api/users/me

Video
Vimeo
Youtube