chore: format

This commit is contained in:
Nathan Walker
2020-07-05 14:57:06 -07:00
parent 8f2900ad0b
commit da3c0b973d
379 changed files with 71587 additions and 54582 deletions

View File

@@ -1,62 +1,70 @@
import { ConfirmOptions, PromptOptions, AlertOptions, PromptResult, LoginOptions, LoginResult, ActionOptions } from "./dialogs-common";
import {
ConfirmOptions,
PromptOptions,
AlertOptions,
PromptResult,
LoginOptions,
LoginResult,
ActionOptions,
} from "./dialogs-common";
/**
* Defines the input type for prompt dialog.
*/
export module inputType {
/**
* Plain text input type.
*/
export const text: string;
/**
* Plain text input type.
*/
export const text: string;
/**
* Password input type.
*/
export const password: string;
/**
* Password input type.
*/
export const password: string;
/**
* Email input type.
*/
export const email: string;
/**
* Email input type.
*/
export const email: string;
/**
* Number input type.
*/
export const number: string;
/**
* Number input type.
*/
export const number: string;
/**
* Decimal input type.
*/
export const decimal: string;
/**
* Decimal input type.
*/
export const decimal: string;
/**
* Phone input type.
*/
export const phone: string;
/**
* Phone input type.
*/
export const phone: string;
}
/**
* Defines the capitalization type for prompt dialog.
*/
export module capitalizationType {
/**
* No automatic capitalization.
*/
export const none: string;
/**
* No automatic capitalization.
*/
export const none: string;
/**
* Capitalizes every character.
*/
export const all: string;
/**
* Capitalizes every character.
*/
export const all: string;
/**
* Capitalize the first word of each sentence.
*/
export const sentences: string;
/**
* Capitalize the first word of each sentence.
*/
export const sentences: string;
/**
* Capitalize the first letter of every word.
*/
export const words: string;
/**
* Capitalize the first letter of every word.
*/
export const words: string;
}
/**
@@ -88,7 +96,10 @@ export function confirm(options: ConfirmOptions): Promise<boolean>;
* @param message The text to display in the dialog box.
* @param defaultText The default text to display in the input box. Optional.
*/
export function prompt(message: string, defaultText?: string): Promise<PromptResult>;
export function prompt(
message: string,
defaultText?: string
): Promise<PromptResult>;
/**
* The prompt() method displays a dialog box that prompts the visitor for input.
@@ -104,7 +115,13 @@ export function prompt(options: PromptOptions): Promise<PromptResult>;
* @param userName The default text to display in the user name input box. Optional.
* @param password The default text to display in the password input box. Optional.
*/
export function login(message: string, userNameHint?: string, passwordHint?: string, userName?: string, password?: string): Promise<LoginResult>;
export function login(
message: string,
userNameHint?: string,
passwordHint?: string,
userName?: string,
password?: string
): Promise<LoginResult>;
/**
* The login() method displays a login dialog box that prompts the visitor for user name and password.
@@ -112,7 +129,11 @@ export function login(message: string, userNameHint?: string, passwordHint?: str
* @param userNameHint The default text to display as a hint in the username input. Optional.
* @param passwordHint The default text to display as a hint in the password input. Optional.
*/
export function login(message: string, userNameHint?: string, passwordHint?: string): Promise<LoginResult>;
export function login(
message: string,
userNameHint?: string,
passwordHint?: string
): Promise<LoginResult>;
/**
* The login() method displays a login dialog box that prompts the visitor for user name and password.
@@ -126,7 +147,11 @@ export function login(options: LoginOptions): Promise<LoginResult>;
* @param cancelButtonText The text to display in the cancel button.
* @param actions List of available actions.
*/
export function action(message: string, cancelButtonText: string, actions: Array<string>): Promise<string>;
export function action(
message: string,
cancelButtonText: string,
actions: Array<string>
): Promise<string>;
/**
* The action() method displays a action box that prompts the visitor to choose some action.