mirror of
https://github.com/nix-community/noogle.git
synced 2024-11-26 10:24:25 +03:00
35 lines
702 B
TypeScript
35 lines
702 B
TypeScript
export type NixType = "attrset" | "list" | "string" | "int" | "bool" | "any";
|
|
export const nixTypes: NixType[] = [
|
|
"any",
|
|
"attrset",
|
|
"list",
|
|
"string",
|
|
"bool",
|
|
"int",
|
|
];
|
|
|
|
export type DocItem = {
|
|
category: string;
|
|
name: string;
|
|
fn_type?: string;
|
|
description?: string | string[];
|
|
example?: string | string[];
|
|
};
|
|
|
|
export type MetaData = DocItem[];
|
|
|
|
|
|
// export type FuncData = {
|
|
// name: string;
|
|
// info: NixFunctionMeta;
|
|
// };
|
|
|
|
// export type NixFunctionMeta = {
|
|
// "attr-path": string;
|
|
// "doc-url": string;
|
|
// source: string;
|
|
// from: NixType;
|
|
// to: NixType;
|
|
// }
|
|
|
|
// export type NixFunctionSet = {[name:string]: NixFunctionMeta}
|