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
| Parameter | Type | Description |
|---|---|---|
target | DecoratorHostConstructor | object | Class or instance that owns the decorated method. |
methodKey | string | symbol | Method key on the decorated target. |
opts | Omit<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