noogle/website/models/nix.ts
Johannes Kirschbauer d9f579cf44
Feature/monorepo (#24)
* refactor to include all necessary dependencies directly here

* move indexer into monorepo

* add snapshot tests and seperate sub.project for builtin types

* add more missing builtins such as fromTOML
2023-02-25 13:14:40 +01:00

22 lines
466 B
TypeScript

export type NixType = "function" | "attrset" | "list" | "string" | "int" | "bool" | "any";
export const nixTypes: NixType[] = [
"any",
"attrset",
"list",
"string",
"bool",
"int",
];
export type DocItem = {
id: string;
category: string;
name: string;
fn_type?: null | string;
description?: null | string | string[];
example?: null | string | string[];
line?: null | number;
};
export type MetaData = DocItem[];