Skip to content

Commit

Permalink
chore: remove unused packages
Browse files Browse the repository at this point in the history
  • Loading branch information
niels-bosman committed Jul 12, 2023
1 parent 053d311 commit 2ab25c7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2,140 deletions.
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,12 @@
"react": ">=17.0.2"
},
"devDependencies": {
"@babel/preset-env": "^7.4.5",
"@babel/preset-typescript": "^7.3.3",
"@types/react": "^18.2.14",
"@types/uuid": "^9.0.2",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.61.0",
"babel-jest": "^29.6.1",
"eslint": "8.44.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "13.4.7",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const getStream = async (input: string, options: UseChatStreamOptions, me

export async function* decodeStreamToJson(
data: ReadableStream<Uint8Array> | null,
) {
): AsyncIterableIterator<string> {
if (!data) return;

const reader = data.getReader();
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": ["dom", "es2015"],
"lib": [
"dom",
"es2015",
"es2018.asynciterable"
],
"jsx": "react",
"declaration": true,
"declarationMap": true,
Expand Down
Loading

0 comments on commit 2ab25c7

Please # to comment.