mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-12 20:02:49 +00:00
14 lines
774 B
TypeScript
14 lines
774 B
TypeScript
import { ok, okCancel, abortRetryIgnore } from 'mitsobox';
|
|
// tslint:disable-next-line: no-duplicate-imports
|
|
import * as mitsobox from 'mitsobox';
|
|
|
|
// member import tests
|
|
ok('test - ok', 'a test messageBox'); // $ExpectType Promise<void>
|
|
okCancel('test - okCancel', 'a test messageBox'); // $ExpectType Promise<"OK" | "CANCEL">
|
|
abortRetryIgnore('test - abortRetryIgnore', 'a test messageBox'); // $ExpectType Promise<"ABORT" | "RETRY" | "IGNORE">
|
|
|
|
// module import tests
|
|
mitsobox.ok('test - ok', 'a test messageBox'); // $ExpectType Promise<void>
|
|
mitsobox.okCancel('test - okCancel', 'a test messageBox'); // $ExpectType Promise<"OK" | "CANCEL">
|
|
mitsobox.abortRetryIgnore('test - abortRetryIgnore', 'a test messageBox'); // $ExpectType Promise<"ABORT" | "RETRY" | "IGNORE">
|