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

patch

import { patch } from "https://raw.githubusercontent.com/takker99/scrapbox-userscript-std/0.14.10/mod.ts";

ページ全体を書き換える

serverには書き換え前後の差分だけを送信する

const patch: (
project: string,
title: string,
update: (lines: Line[], metadata: HeadData) => string[] | undefined | Promise<string[] | undefined>,
options?: PatchOptions,
) => Promise<void>
;