1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/project-static/src/global.d.ts
checktheroads 912cd220cc add javascript
2021-03-13 02:31:57 -07:00

39 lines
661 B
TypeScript

type Nullable<T> = T | null;
type APIAnswer<T> = {
count: number;
next: Nullable<string>;
previous: Nullable<string>;
results: T[];
};
type APIError = {
error: string;
exception: string;
netbox_version: string;
python_version: string;
};
type APIObjectBase = {
id: number;
name: string;
url: string;
[k: string]: unknown;
};
interface APIReference {
id: number;
name: string;
slug: string;
url: string;
_depth: number;
}
interface ObjectWithGroup extends APIObjectBase {
group: Nullable<APIReference>;
}
declare const messages: string[];
type FormControls = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;