-
I have this code from documentation: import { provide } from '@deepkit/injector';
interface Connection {
write(data: Uint16Array): void;
}
class Server {
constructor (public connection: Connection) {}
}
class MyConnection {
write(data: Uint16Array): void {}
}
const testing = createTestingApp({
...
providers: [
Server,
provide<Connection>(MyConnection)
]
]); How can I resolve |
Beta Was this translation helpful? Give feedback.
Answered by
rjurado01
Feb 28, 2023
Replies: 1 comment
-
I answer myself: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rjurado01
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I answer myself:
testing.app.get<Connection>()