Skip to content

Commit b2d112b

Browse files
authored
feat: add new BackgroundHandler type (#364)
Fixes netlify/docs#2328 `Promise<void>` is a valid return type for a function. example: ``` const handler: Handler = async () => { return; } ``` I also added `tsd` to test for the types.
1 parent 9f1a7b0 commit b2d112b

File tree

7 files changed

+552
-1
lines changed

7 files changed

+552
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
rules: {
1313
'no-magic-numbers': 'off',
1414
'promise/prefer-await-to-callbacks': 'off',
15+
'unicorn/filename-case': 'off',
1516
},
1617
},
1718
],

0 commit comments

Comments
 (0)