import { Context } from "@halsp/core"; import { InjectType } from "../inject-type"; export type InjectCustom = | { readonly handler: (parent: any) => T | Promise; readonly property: string | symbol; readonly parameterIndex?: number; readonly type: InjectType.Singleton; } | { readonly handler: (ctx: Context, parent: any) => T | Promise; readonly property: string | symbol; readonly parameterIndex?: number; readonly type?: InjectType.Scoped | InjectType.Transient; };