From 01f2e6a235d9696360fda34a5c0733215ace372a Mon Sep 17 00:00:00 2001 From: Mitch Ryan Date: Tue, 25 Jun 2024 13:13:10 +0200 Subject: [PATCH] Fix typo in Management API interfaces --- src/index.ts | 8 ++++---- src/interfaces.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index 9b03ffa5..039be4a9 100755 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ import { ISbStory, ISbStoryData, ISbStoryParams, - ISbContentMangmntAPI, + ISbContentManagementAPI, ISbNode, ThrottleFn, IMemoryType, @@ -265,7 +265,7 @@ class Storyblok { public post( slug: string, - params: ISbStoriesParams | ISbContentMangmntAPI, + params: ISbStoriesParams | ISbContentManagementAPI, fetchOptions?: ISbCustomFetch ): Promise { const url = `/${slug}` @@ -277,7 +277,7 @@ class Storyblok { public put( slug: string, - params: ISbStoriesParams | ISbContentMangmntAPI, + params: ISbStoriesParams | ISbContentManagementAPI, fetchOptions?: ISbCustomFetch ): Promise { const url = `/${slug}` @@ -289,7 +289,7 @@ class Storyblok { public delete( slug: string, - params: ISbStoriesParams | ISbContentMangmntAPI, + params: ISbStoriesParams | ISbContentManagementAPI, fetchOptions?: ISbCustomFetch ): Promise { const url = `/${slug}` diff --git a/src/interfaces.ts b/src/interfaces.ts index 05c9fc10..1354d377 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -269,7 +269,7 @@ export type MarkSchema = { (node: ISbNode): object } -export interface ISbContentMangmntAPI< +export interface ISbContentManagementAPI< Content = ISbComponentType & { [index: string]: any }, > { story: { @@ -287,7 +287,7 @@ export interface ISbContentMangmntAPI< translated_slugs_attributes?: { path: string name: string | null - lang: ISbContentMangmntAPI['lang'] + lang: ISbContentManagementAPI['lang'] }[] } force_update?: '1' | unknown @@ -296,7 +296,7 @@ export interface ISbContentMangmntAPI< lang?: string } -export interface ISbManagmentApiResult { +export interface ISbManagementApiResult { data: any headers: any }