API
References
references are just symbols
References
When using Aquinas, your domain layer becomes composed of references.
Use
Create a reference using the reference
function:
import { reference } from "aquinas";
type UserService = {
getUser(id: string): Promise<User>;
};
const UserServiceReference = reference<UserService>("UserService");