source: node_modules/es-toolkit/dist/compat/string/template.d.mts@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 758 bytes
Line 
1import { escape } from './escape.mjs';
2
3declare const templateSettings: {
4 escape: RegExp;
5 evaluate: RegExp;
6 interpolate: RegExp;
7 variable: string;
8 imports: {
9 _: {
10 escape: typeof escape;
11 template: typeof template;
12 };
13 };
14};
15interface TemplateOptions {
16 escape?: RegExp | null | undefined;
17 evaluate?: RegExp | null | undefined;
18 interpolate?: RegExp | null | undefined;
19 variable?: string | undefined;
20 imports?: Record<string, any> | undefined;
21 sourceURL?: string;
22}
23interface TemplateExecutor {
24 (data?: object): string;
25 source: string;
26}
27declare function template(string?: string, options?: TemplateOptions): TemplateExecutor;
28
29export { template, templateSettings };
Note: See TracBrowser for help on using the repository browser.