MCPcopy
hub / github.com/nestjs/nest / isDurable

Function isDurable

packages/core/helpers/is-durable.ts:4–7  ·  view source on GitHub ↗
(provider: Type<unknown>)

Source from the content-addressed store, hash-verified

2import { Type } from '@nestjs/common/interfaces/type.interface';
3
4export function isDurable(provider: Type<unknown>): boolean | undefined {
5 const metadata = Reflect.getMetadata(SCOPE_OPTIONS_METADATA, provider);
6 return metadata && metadata.durable;
7}

Callers 6

insertMiddlewareMethod · 0.90
addInjectableMethod · 0.90
addProviderMethod · 0.90
addCustomClassMethod · 0.90
addControllerMethod · 0.90
instantiateClassFunction · 0.90

Calls 1

getMetadataMethod · 0.45

Tested by

no test coverage detected