Hi, while trying to adapt angular example (Angular | Sentry Documentation), I get errors.
{
provide: Sentry.TraceService,
deps: [Router],
},
// ^^^^^----
// TS2322: Type '{ provide: typeof Sentry.TraceService; deps: (typeof Router)[]; }' is not assignable
// to type 'Provider<any>'. Object literal may only specify known properties, and 'deps' does not
// exist in type 'Provider<any>'.
{
provide: APP_INITIALIZER,
useFactory: () => () => {},
deps: [Sentry.TraceService],
multi: true,
},
// ^^^^-----
// TS2322: Type 'InjectionToken<(() => void)[]>' is not assignable to type 'string | symbol | Function |
// Type<any> | Abstract<any>'. Type 'InjectionToken<(() => void)[]>' is missing the following
// properties
// from type 'Abstract<any>': prototype, apply, call, bind, and 5 more