1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

update select to handle display property

This commit is contained in:
checktheroads
2021-03-17 12:39:35 -07:00
parent 9c66e1f01b
commit 4e837c2770
4 changed files with 299 additions and 173 deletions

View File

@@ -1,3 +1,7 @@
type Primitives = string | number | boolean | undefined | null;
type JSONAble = Primitives | Primitives[] | { [k: string]: JSONAble } | JSONAble[];
type Nullable<T> = T | null;
type APIAnswer<T> = {
@@ -16,18 +20,19 @@ type APIError = {
type APIObjectBase = {
id: number;
display?: string;
name: string;
url: string;
[k: string]: unknown;
[k: string]: JSONAble;
};
interface APIReference {
type APIReference = {
id: number;
name: string;
slug: string;
url: string;
_depth: number;
}
};
interface ObjectWithGroup extends APIObjectBase {
group: Nullable<APIReference>;