Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

nix.nixStrLit

import { nix } from "https://garn.io/ts/v0.0.20/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: string): 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

§
s: TemplateStringsArray
[src]
§
...interpolations: Array<NixStrLitInterpolatable> optional
[src]
§
nixStrLit(s: string): NixExpression
[src]

§Parameters

§
s: string
[src]
§
nixStrLit(s: TemplateStringsArray | string, ...interpolations: Array<NixStrLitInterpolatable>): NixExpression
[src]

§Parameters

§
s: TemplateStringsArray | string
[src]
§
...interpolations: Array<NixStrLitInterpolatable> optional
[src]