Skip to content

Commit

Permalink
Fix typo in Management API interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ryami333 committed Jul 8, 2024
1 parent d04da2e commit 01f2e6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
ISbStory,
ISbStoryData,
ISbStoryParams,
ISbContentMangmntAPI,
ISbContentManagementAPI,
ISbNode,
ThrottleFn,
IMemoryType,
Expand Down Expand Up @@ -265,7 +265,7 @@ class Storyblok {

public post(
slug: string,
params: ISbStoriesParams | ISbContentMangmntAPI,
params: ISbStoriesParams | ISbContentManagementAPI,
fetchOptions?: ISbCustomFetch
): Promise<ISbResponseData> {
const url = `/${slug}`
Expand All @@ -277,7 +277,7 @@ class Storyblok {

public put(
slug: string,
params: ISbStoriesParams | ISbContentMangmntAPI,
params: ISbStoriesParams | ISbContentManagementAPI,
fetchOptions?: ISbCustomFetch
): Promise<ISbResponseData> {
const url = `/${slug}`
Expand All @@ -289,7 +289,7 @@ class Storyblok {

public delete(
slug: string,
params: ISbStoriesParams | ISbContentMangmntAPI,
params: ISbStoriesParams | ISbContentManagementAPI,
fetchOptions?: ISbCustomFetch
): Promise<ISbResponseData> {
const url = `/${slug}`
Expand Down
6 changes: 3 additions & 3 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export type MarkSchema = {
(node: ISbNode): object
}

export interface ISbContentMangmntAPI<
export interface ISbContentManagementAPI<
Content = ISbComponentType<string> & { [index: string]: any },
> {
story: {
Expand All @@ -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
Expand All @@ -296,7 +296,7 @@ export interface ISbContentMangmntAPI<
lang?: string
}

export interface ISbManagmentApiResult {
export interface ISbManagementApiResult {
data: any
headers: any
}
Expand Down

0 comments on commit 01f2e6a

Please sign in to comment.