We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 987302a + 7189780 commit db5cb32Copy full SHA for db5cb32
examples/basic/logger-example.ts
@@ -182,7 +182,7 @@ async function examplePluginLogging() {
182
dependencies: ['database'],
183
184
init: async (ctx: PluginContext) => {
185
- const db = ctx.getService('db') as any;
+ const db = ctx.getService('db') as { connected: boolean };
186
ctx.logger.info('API plugin initialized', { dbConnected: db.connected });
187
188
ctx.registerService('api', { server: 'http://localhost:3000' });
0 commit comments