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

x/deno_nest/src/interfaces/scope-options.interface.ts>Scope

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
enum Scope
import { Scope } from "https://deno.land/x/deno_nest@v3.7.0/src/interfaces/scope-options.interface.ts";

Members

DEFAULT = 0

The provider can be shared across multiple classes. The provider lifetime is strictly tied to the application lifecycle. Once the application has bootstrapped, all providers have been instantiated.

TRANSIENT = 1

A new private instance of the provider is instantiated for every use