DefinitelyTyped/types/string-placeholder/index.d.ts
Filipe Ferreira c31e519f1b Added typing for string-placeholder (#40373)
* 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
2019-11-19 15:54:45 -08:00

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;