NixExpression
import type { NixExpression } from "https://garn.io/ts/v0.0.16/nix.ts";
An opaque type representing a Nix expression.
It is not advised to construct this type but instead use nixRaw
or nixStrLit
.
type NixExpression = {);
[__nixExpressionTag]: null;
} & ( | {
type: "raw";
raw: InterpolatedString<NixExpression>;
} | {
type: "list";
elements: Array<NixExpression>;
} | {
type: "attrSet";
elements: Record<string, NixExpression>;
} | {
type: "strLit";
str: InterpolatedString<NixExpression>;
} | {
type: "flakeDep";
name: string;
dep: FlakeDep;
}§Type
§
{)
[src][__nixExpressionTag]: null;
} & ( | {
type: "raw";
raw: InterpolatedString<NixExpression>;
} | {
type: "list";
elements: Array<NixExpression>;
} | {
type: "attrSet";
elements: Record<string, NixExpression>;
} | {
type: "strLit";
str: InterpolatedString<NixExpression>;
} | {
type: "flakeDep";
name: string;
dep: FlakeDep;
}