You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is this issue currently blocking your project? (yes/no): No
is this issue affecting a production system? (yes/no): No
Context
node version: 16.19.1
module version: 21.3.2
environment (e.g. node, browser, native): node
used with (e.g. hapi application, another framework, standalone, ...): Hapi, Boom
any other relevant information:
How can we help?
What is the recommended approach for declaring the typescript interface for PluginProperties in Hapi 21?
Formerly (upgrading from Hapi 17), we could do this by declaring a module. But doing this in v21 with multiple plugins yields the following error at runtime: error TS2339: Property 'X' does not exist on type 'PluginProperties'. (where 'X' is the name of some declared plugin).
In the code example below handler.ts is the module that throws the error:
Support plan
Context
How can we help?
What is the recommended approach for declaring the typescript interface for PluginProperties in Hapi 21?
Formerly (upgrading from Hapi 17), we could do this by declaring a module. But doing this in v21 with multiple plugins yields the following error at runtime:
error TS2339: Property 'X' does not exist on type 'PluginProperties'.
(where 'X' is the name of some declared plugin).In the code example below handler.ts is the module that throws the error:
myPlugin.ts
anotherPlg.ts
handler.ts
index.ts
The text was updated successfully, but these errors were encountered: