Skip to content

Commit

Permalink
fix: incorrect type annotation for return type of Prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
zcaceres committed Jan 18, 2025
1 parent 39e8bd2 commit 0f253fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/experimental/decorators/Prompt.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { PromptConfig, PromptDefinition } from "../../../types";
import { extractFunctionMetadata, metadataKey } from "../MagicConfig";

export function Prompt(
config?: PromptDefinition,
): PropertyDecorator & MethodDecorator {
export function Prompt(config?: PromptDefinition) {
return function (...args: any[]) {
const [target, propertyKey, descriptor] = args;

Expand Down

0 comments on commit 0f253fc

Please # to comment.