Skip to content

Commit 492d193

Browse files
author
dustin deus
committed
allow undefined dict values
1 parent 3605207 commit 492d193

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/http-data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type CacheTTLOptions = {
2424
}
2525

2626
interface Dictionary<T> {
27-
[Key: string]: T
27+
[Key: string]: T | undefined
2828
}
2929

3030
export type RequestOptions = {

test/rest-data-source.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ test('Should be able to pass query params', async (t) => {
180180
return this.get(path, {
181181
query: {
182182
a: 1,
183-
b: '2'
183+
b: '2',
184+
c: undefined
184185
}
185186
})
186187
}

0 commit comments

Comments
 (0)