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

x/deno_nest/mod.ts>Scope

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
enum Scope
Re-export
import { Scope } from "https://deno.land/x/deno_nest@v3.5.1/mod.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