NixStrLitInterpolatable
import type { NixStrLitInterpolatable } from "https://garn.io/ts/v0.0.19/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
.
string
s are treated as raw string data to be escaped and concatenated with
the rest of the Nix string literal.
NixExpression
s 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 | {
[src]nixExpression: NixExpression;
}