diff --git a/index.d.ts b/index.d.ts index 6bfd34fde..4acfaeab5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -159,23 +159,26 @@ export interface Sys { space?: { sys: SpaceLink; }; + environment?: { + sys: EnvironmentLink; + }; contentType: { sys: ContentTypeLink; }; } -export interface SpaceLink { - type: 'Link'; - linkType: 'Space'; - id: string; -} +export type LinkType = 'Space' | 'ContentType' | 'Environment' -export interface ContentTypeLink { - type: 'Link'; - linkType: 'ContentType'; - id: string; +export interface Link { + type: 'Link' + linkType: T + id: string } +export type SpaceLink = Link<'Space'> +export type EnvironmentLink = Link<'Environment'> +export type ContentTypeLink = Link<'ContentType'> + export interface Field { disabled: boolean; id: string;