mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Fix issues identified with the Hapi 17 update (#23691)
* Fix issues identified with the Hapi 17 update This commit introduces a variety of changes, primarily fixes, but it also collapses the typings into a single file. Collapsing it into a single file means simpler augmentation of types, which is common in Hapi. Thank you to SimonSchick for contributing a number of changes here. * fix response property
This commit is contained in:
@@ -39,5 +39,5 @@ server.register(Basic).then(() => {
|
||||
server.auth.strategy('simple', 'basic', { validate });
|
||||
server.auth.default('simple');
|
||||
|
||||
server.route({ method: 'GET', path: '/', config: { auth: 'simple' } });
|
||||
server.route({ method: 'GET', path: '/', options: { auth: 'simple' } });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user