Skip to content

Commit

Permalink
Update prompt type (#76)
Browse files Browse the repository at this point in the history
* Update prompt.ts

* Up version to 0.1.76
  • Loading branch information
kevin-btc authored Sep 26, 2023
1 parent 39a975c commit 8fd21c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@ export type Prompt = {
like?: number;
use?: number;
tags?: string[];
user_id?: string; // eslint-disable-line camelcase
public: boolean;
};

export type PromptInsert = Pick<Prompt, "name" | "description" | "prompt" | "tags">;
export type PromptInsert = Pick<Prompt, "name" | "description" | "prompt" | "tags" | "public">;
export type PromptUpdate = Partial<PromptInsert>;

async function axiosWrapper<T>(
method: "get" | "post" | "put" | "delete",
url: string,
data?: Record<string, string | string[]> | undefined,
data?: Record<string, string | string[] | boolean> | undefined,
clientOptions: InputClientOptions = {},
): Promise<T> {
const { token, endpoint } = await defaultOptions(clientOptions);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polyfact",
"version": "0.1.75",
"version": "0.1.76",
"main": "index.js",
"types": "index.d.ts",
"author": "Lancelot Owczarczak <[email protected]>",
Expand Down

0 comments on commit 8fd21c9

Please sign in to comment.