Skip to content

Commit

Permalink
fix(index.d.ts): Fix fields array
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjp authored and Khaledgarbaya committed Apr 21, 2017
1 parent 721f4ae commit 28a5a0d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface ContentType {
name: string;
description: string;
displayField: string;
Array: string;
fields: Array<Field>;
toPlainObject(): ContentType;
}

Expand Down Expand Up @@ -115,4 +115,15 @@ export interface ContentTypeLink {
id: string;
}

export interface Field {
disabled: boolean;
id: string;
linkType?: string;
localized: boolean;
name: string;
omitted: boolean;
required: boolean;
type: string;
}

export function createClient(params: CreateClientParams): ContentfulClientApi;

0 comments on commit 28a5a0d

Please sign in to comment.