Skip to content

Commit fdc5744

Browse files
author
Hanno J. Gödecke
authored
fix: fields array type (#66)
Proper/modern array usage for typescript
1 parent 167497d commit fdc5744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare module 'apollo-datasource-mongodb' {
1818
: Collection<T>
1919

2020
export interface Fields {
21-
[fieldName: string]: string | number | boolean | [string | number | boolean]
21+
[fieldName: string]: string | number | boolean | (string | number | boolean)[]
2222
}
2323

2424
export interface Options {
@@ -51,4 +51,4 @@ declare module 'apollo-datasource-mongodb' {
5151

5252
deleteFromCacheById(id: ObjectId | string): Promise<void>
5353
}
54-
}
54+
}

0 commit comments

Comments
 (0)