UNPKG

@bbc/timeline-state-resolver-types

Version:
17 lines 655 B
/** This resolves to a string, where parts can be defined by the datastore */ export interface TemplateString { /** The string template. Example: "http://google.com?q={{searchString}}" */ key: string; /** Values for the arguments in the key string. Example: { searchString: "TSR" } */ args?: { [k: string]: any; }; } /** * Interpolate a translation style string */ export declare function interpolateTemplateString(key: string, args: { [key: string]: any; } | undefined): string; export declare function interpolateTemplateStringIfNeeded(str: string | TemplateString): string; //# sourceMappingURL=templateString.d.ts.map