Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/oak_nest/src/interfaces/mod.ts>ValueProvider

Refer to nestjs to realize some common functions for Deno
Go to Latest
interface ValueProvider
import { type ValueProvider } from "https://deno.land/x/oak_nest@v1.13.17/src/interfaces/mod.ts";

Interface defining a Value type provider.

For example:

const connectionProvider = {
  provide: 'CONNECTION',
  useValue: connection,
};

Type Parameters

optional
T = any

Properties

provide: Provide

Injection token

useValue: T

Instance of a provider to be injected.