mirror of
https://github.com/nix-community/noogle.git
synced 2024-12-02 06:24:05 +03:00
d9f579cf44
* 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
22 lines
466 B
TypeScript
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[]; |