mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added typing for string-placeholder * Fixed linting * Added readonly to arrays * Change typescript version * Fixed types definition * Code review comments * Removed clean as array type * Fix export * Fix export
17 lines
512 B
TypeScript
17 lines
512 B
TypeScript
// Type definitions for string-placeholder 1.0
|
|
// Project: https://github.com/crysalead-js/string-placeholder#readme
|
|
// Definitions by: Filipe Ferreira <https://github.com/iTsFILIPOficial>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
declare function template(str: string, data: Readonly<unknown>, options?: Readonly<Options>): string;
|
|
|
|
interface Options {
|
|
before?: string;
|
|
after?: string;
|
|
escape?: string;
|
|
clean?: boolean;
|
|
}
|
|
|
|
export = template;
|