Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Labeled arguments seem to not be output appropriately #635

Closed
sgrove opened this issue Aug 17, 2023 · 0 comments
Closed

Labeled arguments seem to not be output appropriately #635

sgrove opened this issue Aug 17, 2023 · 0 comments

Comments

@sgrove
Copy link
Collaborator

sgrove commented Aug 17, 2023

For example, for a given function:

@genType
let basicExample = (
  ~kind,
  ~title,
  ~camelCaseName,
  ~id,
  ~description,
  ~sourceCode,
  ~localSchema: string,
  ~upstreamDependencies,
) => {
 ()
}

Outputs this javascript:

function basicExample(
  nodeFilepath,
  node,
  onSuccess,
  onError,
  nodePayload,
  nodeInput,
  whichEval,
) {}

but outputs this .gen.tsx:

export const basicExample: <T1, T2, T3, T4>(_1: {
  readonly nodeFilepath: T1;
  readonly node: Compiler_Structures_Node_t;
  readonly onSuccess: T2;
  readonly onError: (_1: exn) => void;
  readonly nodePayload: T3;
  readonly nodeInput: T4;
  readonly whichEval:
    | "full"
    | "inputToPrompt"
    | "inputToSystemPrompt"
    | "payloadToInput";
}) => void = HyperEvalBS.basicExample;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant