[Improvement] Toast: type definition (#1468)

This commit is contained in:
neverland
2018-07-11 21:24:26 +08:00
committed by GitHub
parent 0753ab445c
commit 54d3277711
2 changed files with 19 additions and 6 deletions

2
types/dialog.d.ts vendored
View File

@@ -1,5 +1,5 @@
type DialogAction = 'confirm' | 'cancel';
type DialogDone = (close: boolean) => void;
type DialogDone = (close?: boolean) => void;
export type DialogOptions = {
title?: string;