nix.nixStrLit
import { nix } from "https://garn.io/ts/v0.0.19/mod.ts";
const { nixStrLit } = nix;
Returns a NixExpression
which represents a Nix string literal, but with
all typescript interpolations properly escaped and interpolated.
See also NixStrLitInterpolatable
.
function nixStrLit(s: TemplateStringsArray, ...interpolations: Array<NixStrLitInterpolatable>): NixExpression;
function nixStrLit(s: TemplateStringsArray | string, ...interpolations: Array<NixStrLitInterpolatable>): NixExpression;
§
nixStrLit(s: TemplateStringsArray, ...interpolations: Array<NixStrLitInterpolatable>): NixExpression
[src]Returns a NixExpression
which represents a Nix string literal, but with
all typescript interpolations properly escaped and interpolated.
See also NixStrLitInterpolatable
.
§Parameters
§
...interpolations: Array<NixStrLitInterpolatable> optional
[src]§Return Type
§
nixStrLit(s: TemplateStringsArray | string, ...interpolations: Array<NixStrLitInterpolatable>): NixExpression
[src]§Parameters
§
...interpolations: Array<NixStrLitInterpolatable> optional
[src]