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

NixStrLitInterpolatable

import type { NixStrLitInterpolatable } from "https://garn.io/ts/v0.0.20/nix.ts";

A union of types that are allowed to be interpolated into the nixStrLit template literal function. This is also used in some higher level functions, such as Environment.shell.

strings are treated as raw string data to be escaped and concatenated with the rest of the Nix string literal.

NixExpressions compile into Nix interpolations.

{ nixExpression: NixExpression } works the same as NixExpression - It is added to this union purely as a convenience since it is a super type of many higher level types such as Package. This allows interpolating these higher level types directly in nixStrLit.

type NixStrLitInterpolatable = string | NixExpression | {
nixExpression: NixExpression;
}
;

§Type

§
string | NixExpression | {
nixExpression: NixExpression;
}
[src]