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

Button

import type { Button } from "https://raw.githubusercontent.com/MijinkoSD/input-dialog-userscript/main/scrapboxAlert.ts";

ボタンの型

type Button = {
label: string;
useInputForm: true;
onClick: (form: {
InputValue?: string;
}
) => AlertAnswer
;
className?: string;
}
| {
label: string;
useInputForm: false;
onClick: (form: undefined) => AlertAnswer;
className?: string;
}
;

§Type

§
{
label: string;
useInputForm: true;
onClick: (form: {
InputValue?: string;
}
) => AlertAnswer
;
className?: string;
}
| {
label: string;
useInputForm: false;
onClick: (form: undefined) => AlertAnswer;
className?: string;
}
[src]