liferay-npm-bundler-preset-reactjs
Version:
liferay npm bundler preset react
108 lines (107 loc) • 2.45 kB
TypeScript
/**
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
/**
* Tagged template processor for error messages.
*
* Example of use:
*
* ```ts
* error`
* This is an error message with some ${argument} to show
* `
* ```
*
* @remarks
* Error messages are prepended with a '❌' emoji.
*/
export declare function error(literals: any, ...values: any[]): string;
/**
* Tagged template processor for information messages.
*
* Example of use:
*
* ```ts
* info`
* This is an information message with some ${argument} to show
* `
* ```
*
* @remarks
* Error messages are prepended with a 'ℹ️' emoji.
*/
export declare function info(literals: any, ...values: any[]): string;
/**
* Print an array of lines separating them with CRs or a single line.
*
* It takes care of removing:
*
* * Words inside `||` if `no-decorations` option is set
*
* And also decorates (unless `no-decorations` is provided):
*
* * URLs starting with `http(s)://` with underline
* * Words inside `{}` with bold
*
* Each passed line is processed by the {@link removeJsFormatWhitespace}
* function.
*/
export declare function print(lines: string | string[], ...rest: string[]): void;
/**
* Tagged template processor for success messages.
*
* Example of use:
*
* ```ts
* success`
* This is a success message with some ${argument} to show
* `
* ```
*
* @remarks
* Error messages are prepended with a '✔️' emoji.
*/
export declare function success(literals: any, ...values: any[]): string;
/**
* Tagged template processor for question messages.
*
* Example of use:
*
* ```ts
* question`
* Is this a question message with some ${argument} to show?
* `
* ```
*
* @remarks
* Error messages are prepended with a '❓' emoji.
*/
export declare function question(literals: any, ...values: any[]): string;
/**
* Tagged template processor for titles.
*
* Example of use:
*
* ```ts
* title`
* This is a title with some ${argument} to show
* `
* ```
*/
export declare function title(literals: any, ...values: any[]): string;
/**
* Tagged template processor for warning messages.
*
* Example of use:
*
* ```ts
* warn`
* This is an warning message with some ${argument} to show
* `
* ```
*
* @remarks
* Error messages are prepended with a '⚠️' emoji.
*/
export declare function warn(literals: any, ...values: any[]): string;