noogle/models/nix.ts
Johannes Kirschbauer 8679af38a2
feature/deeplinks
* add: deeplinks
* add: enhanced pagination for large datasets
* add more meta tags
* add data to initial state
* remove preview page, instead link directly into the list
2023-01-24 21:02:17 +01:00

21 lines
440 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[];
};
export type MetaData = DocItem[];