14 lines
308 B
TypeScript
14 lines
308 B
TypeScript
import {ConstructorOf, Model} from "@sharkitek/core";
|
|
|
|
/**
|
|
* Auto retriever interface.
|
|
*/
|
|
export interface AutoRetriever<T>
|
|
{
|
|
/**
|
|
* Auto retrieve a model for the given identifier.
|
|
* @param identifier - Identifier for which to retrieve the model.
|
|
*/
|
|
autoRetrieve(identifier: unknown): Promise<T>;
|
|
}
|