Skip to content

Conversation

imoxto
Copy link
Collaborator

@imoxto imoxto commented Mar 23, 2023

PR for Migrating to Typescript (#7).

Features:

  • Type definitions available for consumable functions
  • Support es module imports

Lackings:

  • support commonjs module requires
  • documentation on how to install, build.

@imoxto imoxto requested review from arionrefat and rk-teche March 23, 2023 10:39
@rk-teche rk-teche changed the title Migrate to typescript [WIP] [WIP] Typescript Migration Mar 23, 2023
"name": "promptifyjs",
"version": "0.0.1",
"description": "Prompt Engineering, Solve NLP Problems with LLM's & Easily generate different NLP Task prompts for popular generative models like GPT, PaLM, and more with Promptify",
"main": "index.js",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no dist/index.js file in the build output. We should create an index.ts file inside src first.

examples = [],
}: {
text_input?: string;
description?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description is not optional. There are a few keys that are required at all times.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are duplicating the same prompt section. Please conditionally generate the prompt based on whether domain is available or not

@Devorein
Copy link
Collaborator

There are a few places where we are using ? (optional) for required parameters. Please update those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants