@@ -222,7 +222,7 @@ class Storyblok {
222
222
223
223
public get (
224
224
slug : string ,
225
- params ? : ISbStoriesParams ,
225
+ params : ISbStoriesParams = { } ,
226
226
fetchOptions ?: ISbCustomFetch
227
227
) : Promise < ISbResult > {
228
228
if ( ! params ) params = { } as ISbStoriesParams
@@ -236,7 +236,7 @@ class Storyblok {
236
236
237
237
public async getAll (
238
238
slug : string ,
239
- params : ISbStoriesParams ,
239
+ params : ISbStoriesParams = { } ,
240
240
entity ?: string ,
241
241
fetchOptions ?: ISbCustomFetch
242
242
) : Promise < any [ ] > {
@@ -265,7 +265,7 @@ class Storyblok {
265
265
266
266
public post (
267
267
slug : string ,
268
- params : ISbStoriesParams | ISbContentMangmntAPI ,
268
+ params : ISbStoriesParams | ISbContentMangmntAPI = { } ,
269
269
fetchOptions ?: ISbCustomFetch
270
270
) : Promise < ISbResponseData > {
271
271
const url = `/${ slug } `
@@ -277,7 +277,7 @@ class Storyblok {
277
277
278
278
public put (
279
279
slug : string ,
280
- params : ISbStoriesParams | ISbContentMangmntAPI ,
280
+ params : ISbStoriesParams | ISbContentMangmntAPI = { } ,
281
281
fetchOptions ?: ISbCustomFetch
282
282
) : Promise < ISbResponseData > {
283
283
const url = `/${ slug } `
@@ -289,7 +289,7 @@ class Storyblok {
289
289
290
290
public delete (
291
291
slug : string ,
292
- params : ISbStoriesParams | ISbContentMangmntAPI ,
292
+ params : ISbStoriesParams | ISbContentMangmntAPI = { } ,
293
293
fetchOptions ?: ISbCustomFetch
294
294
) : Promise < ISbResponseData > {
295
295
const url = `/${ slug } `
@@ -300,7 +300,7 @@ class Storyblok {
300
300
}
301
301
302
302
public getStories (
303
- params : ISbStoriesParams ,
303
+ params : ISbStoriesParams = { } ,
304
304
fetchOptions ?: ISbCustomFetch
305
305
) : Promise < ISbStories > {
306
306
this . client . setFetchOptions ( fetchOptions )
@@ -311,7 +311,7 @@ class Storyblok {
311
311
312
312
public getStory (
313
313
slug : string ,
314
- params : ISbStoryParams ,
314
+ params : ISbStoryParams = { } ,
315
315
fetchOptions ?: ISbCustomFetch
316
316
) : Promise < ISbStory > {
317
317
this . client . setFetchOptions ( fetchOptions )
0 commit comments