Start implementation of model relations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-11-10 21:30:59 -06:00
parent 589cb7d579
commit d92c8b5409
15 changed files with 557 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
import {Application} from './Application'
import {Container, DependencyKey, Injectable} from '../di'
import {Container, Injectable, TypedDependencyKey} from '../di'
/**
* Base type for a class that supports binding methods by string.
@@ -43,7 +43,7 @@ export class AppClass {
}
/** Call the `make()` method on the global container. */
protected make<T>(target: DependencyKey, ...parameters: any[]): T {
protected make<T>(target: TypedDependencyKey<T>, ...parameters: any[]): T {
return this.container().make<T>(target, ...parameters)
}