Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

InjectKey

import type { InjectKey } from "https://raw.githubusercontent.com/drmercer/minimal-injector/master/injector.ts";

A key for an injectable dependency. Can be exchanged for a T (the dependency itself) via an Injector.

interface InjectKey <T> {
_create: (inject: Injector) => T;
}

§Type Parameters

§Properties

§
_create: (inject: Injector) => T
[src]

The default factory for this InjectKey. This is exposed for advanced usages, but you typically won't need this. Instead, pass this InjectKey to an Injector.