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

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

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
interface ValueProvider
import { type ValueProvider } from "https://deno.land/x/deno_nest@v3.5.2/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.