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

NixExpression

import type { NixExpression } from "https://garn.io/ts/v0.0.20/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";
}
| {
type: "list";
elements: Array<NixExpression>;
}
| {
type: "attrSet";
elements: Record<string, NixExpression>;
}
| {
type: "strLit";
}
| {
type: "flakeDep";
name: string;
dep: FlakeDep;
}
)
;

§Type

§
{
[__nixExpressionTag]: null;
}
& (
| {
type: "raw";
}
| {
type: "list";
elements: Array<NixExpression>;
}
| {
type: "attrSet";
elements: Record<string, NixExpression>;
}
| {
type: "strLit";
}
| {
type: "flakeDep";
name: string;
dep: FlakeDep;
}
)
[src]