mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
Updating hapi.d.ts to support optional parameters when registering a plugin
This commit is contained in:
1 parent
f8f1b95d00
commit
48de82851f
2 files changed
+9
-1
No files matched your search
Vendored
+3
-1
@@ -2051,11 +2051,13 @@ declare module "hapi" {
|
||||
register(plugins: any|any[], options: {
|
||||
select: string|string[];
|
||||
routes: {
|
||||
prefix: string; vhost: string|string[]
|
||||
prefix: string; vhost?: string|string[]
|
||||
};
|
||||
}
|
||||
, callback: (err: any) => void):void;
|
||||
|
||||
register(plugins: any|any[], callback: (err: any) => void):void;
|
||||
|
||||
/**server.render(template, context, [options], callback)
|
||||
Utilizes the server views manager to render a template where:
|
||||
template - the template filename and path, relative to the views manager templates path (path or relativeTo).
|
||||
|
||||
Reference in new issue
Block a user