GraphReFlyTS

API Reference

resolveNestMethodKey()

Resolves nest method key.

Import

import { resolveNestMethodKey } from "@graphrefly/ts/adapters/nestjs";

Signature

function resolveNestMethodKey(
	ctor: DecoratorHostConstructor,
	handler: DecoratorBoundMethod,
): string | symbol | undefined

Parameters

ParameterTypeDescription
ctorDecoratorHostConstructorConstructor that may own the decorated handler.
handlerDecoratorBoundMethodHandler function to match against metadata.

Returns

The stable key or reference string.

Example

import { resolveNestMethodKey } from "@graphrefly/ts/adapters/nestjs";

Source

packages/ts/src/adapters/nestjs.ts