diff --git a/types/tryghost__content-api/index.d.ts b/types/tryghost__content-api/index.d.ts index 39ea2bf087..6903802fc0 100644 --- a/types/tryghost__content-api/index.d.ts +++ b/types/tryghost__content-api/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/TryGhost/Ghost-SDK/tree/master/packages/content-api // Definitions by: Kevin Nguyen // Anton Van Eechaute +// Yashar Moradi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export type ArrayOrValue = T | T[]; @@ -166,7 +167,7 @@ export interface BrowseFunction { } export interface ReadFunction { - (data: GhostData, options?: Params, memberToken?: Nullable): Promise; + (data: { id: Nullable } | { slug: Nullable }, options?: Params, memberToken?: Nullable): Promise; } export interface PostObject {