GraphReFlyTS

API Reference

graphCronTarget()

Creates a graph cron target.

Import

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

Signature

function graphCronTarget(
	target: DecoratorHostConstructor | object,
	methodKey: string | symbol,
	opts: Omit<GraphCronProviderTarget<THost>, "target" | "methodKey">,
): GraphCronProviderTarget<THost>

Parameters

ParameterTypeDescription
targetDecoratorHostConstructor | objectClass or instance that owns the decorated method.
methodKeystring | symbolMethod key on the decorated target.
optsOmit<GraphCronProviderTarget<THost>, "target" | "methodKey">Options that configure the helper.

Returns

The graph cron target result.

Example

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

Source

packages/ts/src/adapters/nestjs/native.ts