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
{{ message }}
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
Could you please provide a full fluentProvide example?
I have this kind of issue:
import { Container, decorate, inject, injectable, interfaces as inversifyInterfaces, named } from "inversify";
import { fluentProvide, buildProviderModule } from "inversify-binding-decorators";
import "reflect-metadata";
const container = new Container();
const provideFluent = fluentProvide(container);
....
export function ProvideAsSingleton(symbol: inversifyInterfaces.ServiceIdentifier<any>): any {
return provideFluent(symbol).inSingletonScope().done(true);
}
container.load(buildProviderModule());
export { container };
The issue is at:
const provideFluent = fluentProvide(container);
the error is:
[ts]
Argument of type 'Container' is not assignable to parameter of type 'string | symbol | Newable<any> | Abstract<any>'.
Type 'Container' is not assignable to type 'Abstract<any>'.
Property 'prototype' is missing in type 'Container'.