aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
18 lines (17 loc) • 553 B
TypeScript
import type { Branded } from './type-brand';
/**
* A literal string.
*
* This is a string guaranteed to not contain any interpolated variables; i.e., its
* contents MUST occur literally in the source code.
*
* The only way to obtain a `StringLiteral` is by using a tagged template:
*
* ```ts
* const x: StringLiteral = lit`literal string`;
* ```
*
* `StringLiteral`s can be used anywhere strings are used.
*/
export type LiteralString = Branded<string, 'LiteralString'>;
export declare function lit(x: TemplateStringsArray): LiteralString;