UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

6 lines (5 loc) • 225 B
import { SCOPE_OPTIONS_METADATA } from '@nestjs/common/internal'; export function getClassScope(provider) { const metadata = Reflect.getMetadata(SCOPE_OPTIONS_METADATA, provider); return metadata && metadata.scope; }