Skip to content

Commit

Permalink
fix: TypeScript errors detection in dev and build
Browse files Browse the repository at this point in the history
  • Loading branch information
RezaRahemtola committed Jul 23, 2024
1 parent 73ac02e commit 9060ab1
Show file tree
Hide file tree
Showing 8 changed files with 316 additions and 25 deletions.
311 changes: 298 additions & 13 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
"prettier": "^3.3.3",
"tailwindcss": "^3.4.6",
"typescript": "^5.5.4",
"vite-plugin-checker": "^0.7.2",
"vite-plugin-node-polyfills": "^0.22.0",
"vue-eslint-parser": "^9.4.3"
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.0.28"
},
"overrides": {
"vite": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions quasar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = configure(function (/* ctx */) {
// app boot file (/src/boot)
// --> boot files are part of "main.js"
// https://v2.quasar.dev/quasar-cli-vite/boot-files
boot: ['utils', 'wagmi'],
boot: ['wagmi'],

// https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css
css: ['app.scss', 'tailwind.css'],
Expand Down Expand Up @@ -91,7 +91,7 @@ module.exports = configure(function (/* ctx */) {
// extendViteConf (viteConf) {},
// viteVuePluginOptions: {},

vitePlugins: [],
vitePlugins: [['vite-plugin-checker', { vueTsc: true }]],
},

// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer
Expand Down
10 changes: 5 additions & 5 deletions src/boot/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { boot } from 'quasar/wrappers';
// import { boot } from 'quasar/wrappers';
// import KnowledgeStoreUploader from 'components/KnowledgeStoreUploader.ts';
// "async" is optional;
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
export default boot(async ({ _app }) => {
// something to do
// app.component('KnowledgeStoreUploader', KnowledgeStoreUploader);
});
// export default boot(async ({ _app }) => {
// // something to do
// // app.component('KnowledgeStoreUploader', KnowledgeStoreUploader);
// });
2 changes: 1 addition & 1 deletion src/components/PersonaDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<script lang="ts" setup>
import { PropType, ref, toRaw, watch } from 'vue';
import AlephAvatar from 'components/AlephAvatar.vue';
import { UIPersona } from 'src/utils/personas';
import { UIPersona } from 'src/types/personas';
export type BasePersonaDialogProp = Partial<Pick<UIPersona, 'name' | 'description' | 'avatar'>>;
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
v-slot="scope"
v-model="message.content"
auto-save
@save="(v, iV) => updateChatMessageContent(message_index, v, iV)"
@save="
(value: string, initialValue: string) => updateChatMessageContent(message_index, value, initialValue)
"
>
<strong>{{ message.role }}</strong>
<q-input v-model="scope.value" autofocus autogrow counter dense />
Expand Down
3 changes: 2 additions & 1 deletion src/stores/personas.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineStore } from 'pinia';

import { defaultPersonas, UIPersona } from '../utils/personas';
import { defaultPersonas } from '../utils/personas';
import { UIPersona } from 'src/types/personas';

export const usePersonasStore = defineStore('personas', {
state: () => ({
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"extends": "@quasar/app-vite/tsconfig-preset",
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext"
"target": "ESNext",
"skipLibCheck": true
},
"exclude": [
"./dist",
Expand Down

0 comments on commit 9060ab1

Please sign in to comment.