Skip to content

Commit 864453a

Browse files
committed
fix: add JsonApiWithNextFetchOptions type to instances of options object
1 parent a3d1650 commit 864453a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/next-drupal/src/next-drupal.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class NextDrupal extends NextDrupalBase {
8989
async createResource<T extends JsonApiResource>(
9090
type: string,
9191
body: JsonApiCreateResourceBody,
92-
options?: JsonApiOptions
92+
options?: JsonApiOptions & JsonApiWithNextFetchOptions
9393
): Promise<T> {
9494
options = {
9595
deserialize: true,
@@ -130,7 +130,7 @@ export class NextDrupal extends NextDrupalBase {
130130
async createFileResource<T = DrupalFile>(
131131
type: string,
132132
body: JsonApiCreateFileResourceBody,
133-
options?: JsonApiOptions
133+
options?: JsonApiOptions & JsonApiWithNextFetchOptions
134134
): Promise<T> {
135135
options = {
136136
deserialize: true,
@@ -176,7 +176,7 @@ export class NextDrupal extends NextDrupalBase {
176176
type: string,
177177
uuid: string,
178178
body: JsonApiUpdateResourceBody,
179-
options?: JsonApiOptions
179+
options?: JsonApiOptions & JsonApiWithNextFetchOptions
180180
): Promise<T> {
181181
options = {
182182
deserialize: true,
@@ -219,7 +219,7 @@ export class NextDrupal extends NextDrupalBase {
219219
async deleteResource(
220220
type: string,
221221
uuid: string,
222-
options?: JsonApiOptions
222+
options?: JsonApiOptions & JsonApiWithNextFetchOptions
223223
): Promise<boolean> {
224224
options = {
225225
withAuth: true,

0 commit comments

Comments
 (0)