Files
directus/docs/index.d.ts
Rijk van Zanten 5450de0351 Update Docs (#3905)
* Allow formatted value display for numbers

* Move the docs website into monorepo

* Fix build

* Tweak docs build setup

* Fix tips, pull in images

* Add syntax highlighting to docs

* Restructure nav, add divider

* Fix tips formatting

* Add prettier config

* Add editorconfig
2021-02-02 11:55:04 -05:00

35 lines
493 B
TypeScript

export type File = {
type: 'file';
size: number;
path: string;
name: string;
extension: string;
};
export type Directory = {
type: 'directory';
size: number;
path: string;
name: string;
children: (Directory | File)[];
};
export type Link = {
name: string;
to: string;
};
export type Group = {
name: string;
to: string;
children: (Group | Link | Divider)[];
icon?: string;
};
export type Divider = {
divider: true;
};
declare const files: Directory;
export default files;