Skip to content
Snippets Groups Projects
Unverified Commit 7eb33177 authored by Alex Yang's avatar Alex Yang Committed by GitHub
Browse files

chore: bump typescript (#1205)

parent 24a3f058
No related branches found
No related tags found
No related merge requests found
Showing
with 1635 additions and 1306 deletions
......@@ -37,7 +37,7 @@
"docusaurus-plugin-typedoc": "1.0.5",
"typedoc": "0.26.6",
"typedoc-plugin-markdown": "4.2.6",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"browserslist": {
"production": [
......
......@@ -21,7 +21,7 @@
"devDependencies": {
"@types/node": "^22.5.1",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"scripts": {
"lint": "eslint ."
......
......@@ -23,6 +23,6 @@
"devDependencies": {
"@types/node": "^22.5.1",
"tsx": "^4.19.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
......@@ -31,7 +31,7 @@
"prettier": "^3.3.3",
"prettier-plugin-organize-imports": "^4.0.0",
"turbo": "^2.1.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"packageManager": "pnpm@9.5.0",
"pnpm": {
......
......@@ -32,6 +32,6 @@
"cross-env": "^7.0.3",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
......@@ -75,7 +75,7 @@
"next": "14.2.7",
"rollup": "^4.21.2",
"tsx": "^4.19.0",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"vitest": "^2.0.5",
"webpack": "^5.94.0"
}
......
......@@ -95,7 +95,7 @@ export class Context {
this.#streamingQueue.push(event);
}
async *streamEvents(): AsyncGenerator<WorkflowEvent, void, undefined> {
async *streamEvents(): AsyncGenerator<WorkflowEvent, void, void> {
while (true) {
const event = this.#streamingQueue.shift();
if (event) {
......
......@@ -62,7 +62,7 @@ export class Workflow {
return stepInfo.inputs.includes(eventType);
}
async *streamEvents(): AsyncGenerator<WorkflowEvent, void, unknown> {
async *streamEvents(): AsyncGenerator<WorkflowEvent, void> {
if (this.#contexts.size > 1) {
throw new Error(
"This workflow has multiple concurrent runs in progress and cannot stream events. " +
......
......@@ -16,7 +16,7 @@
"@cloudflare/workers-types": "^4.20240821.1",
"@vitest/runner": "1.5.3",
"@vitest/snapshot": "1.5.3",
"typescript": "^5.5.4",
"typescript": "^5.6.2",
"vitest": "1.5.3",
"wrangler": "^3.73.0"
},
......
......@@ -23,6 +23,6 @@
"eslint-config-next": "14.2.7",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
......@@ -17,6 +17,6 @@
"@types/node": "^22.5.1",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
......@@ -22,6 +22,6 @@
"eslint-config-next": "14.2.7",
"postcss": "^8.4.41",
"tailwindcss": "^3.4.10",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
}
}
......@@ -20,7 +20,7 @@
"@types/react-dom": "18.3.0",
"autoprefixer": "10.4.20",
"tailwindcss": "3.4.10",
"typescript": "5.5.4",
"typescript": "5.6.2",
"vite-plugin-wasm": "^3.3.0"
}
}
......@@ -94,7 +94,7 @@
"glob": "^11.0.0",
"pg": "^8.12.0",
"pgvector": "0.2.0",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0"
......
......@@ -71,8 +71,8 @@ export class Portkey extends BaseLLM {
this.baseURL = baseURL;
this.session = getPortkeySession({
...rest,
apiKey: this.apiKey,
baseURL: this.baseURL,
apiKey: this.apiKey ?? null,
baseURL: this.baseURL ?? null,
});
}
......
......@@ -245,13 +245,13 @@ export class LlamaParseReader extends FileReader {
) {
super();
Object.assign(this, params);
params.apiKey = params.apiKey ?? getEnv("LLAMA_CLOUD_API_KEY");
if (!params.apiKey) {
const apiKey = params.apiKey ?? getEnv("LLAMA_CLOUD_API_KEY");
if (!apiKey) {
throw new Error(
"API Key is required for LlamaParseReader. Please pass the apiKey parameter or set the LLAMA_CLOUD_API_KEY environment variable.",
);
}
this.apiKey = params.apiKey;
this.apiKey = apiKey;
if (params.gpt4oMode) {
params.gpt4oApiKey =
......
......@@ -11,7 +11,7 @@
"@swc/cli": "^0.4.0",
"@swc/core": "^1.7.22",
"assemblyscript": "^0.27.27",
"typescript": "^5.5.4"
"typescript": "^5.6.2"
},
"engines": {
"node": ">=18.0.0"
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment