Skip to content

Commit e7b4a4c

Browse files
committed
fix: types
1 parent 3cc3c18 commit e7b4a4c

File tree

7 files changed

+321
-159
lines changed

7 files changed

+321
-159
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"radix-vue": "^1.3.2",
4949
"specificity": "^1.0.0",
5050
"type-fest": "^4.10.2",
51-
"vue": "^3.4.10",
51+
"vue": "^3.5.0",
5252
"webextension-polyfill": "0.10.0"
5353
},
5454
"devDependencies": {
@@ -87,9 +87,9 @@
8787
"ts-loader": "9.5.0",
8888
"tslib": "2.6.2",
8989
"typescript": "^5.3.3",
90-
"vite": "5.0.12",
90+
"vite": "5.4.3",
9191
"vue-eslint-parser": "^9.4.0",
92-
"vue-tsc": "^1.8.27",
92+
"vue-tsc": "^2.1.4",
9393
"ws": "8.14.2"
9494
},
9595
"lint-staged": {

pnpm-lock.yaml

Lines changed: 306 additions & 145 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/codemirror/css.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { cssCompletionSource } from '@codemirror/lang-css';
1414
/// highlighting and indentation information.
1515
export const cssLanguage = LRLanguage.define({
1616
name: 'css',
17+
// @ts-expect-error IDK
1718
parser: parser.configure({
1819
props: [
1920
indentNodeProp.add({

src/pages/components/dom-navigation/DomNavigationItem.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ import { DOM_NAVIGATOR_KEY } from '../../content/ui/keys';
5757
import { ToolbarNavigatorState } from '../../content/ui/app/toolbar/ToolbarNavigator.vue';
5858
5959
interface Props {
60-
path: string;
61-
depth: number;
60+
path?: string;
61+
depth?: number;
6262
childIndex: number;
63-
defaultOpen: boolean;
63+
defaultOpen?: boolean;
6464
nodeObject: NodeObject;
65-
parentNode: NodeObject | null;
65+
parentNode?: NodeObject | null;
6666
}
6767
6868
const props = withDefaults(defineProps<Props>(), {

src/pages/components/ui/UiCodemirror.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import { themeInit } from '@root/src/lib/codemirror/theme';
1919
import type { CreateThemeOptions } from '@uiw/codemirror-themes';
2020
2121
interface Props {
22-
modelValue: string;
23-
placeholder: string;
24-
extensions: Extension[];
25-
viewOptions: EditorViewConfig;
22+
modelValue?: string;
23+
placeholder?: string;
24+
extensions?: Extension[];
25+
viewOptions?: EditorViewConfig;
2626
themeOptions: Partial<CreateThemeOptions>;
2727
}
2828
const props = withDefaults(defineProps<Props>(), {

src/pages/content/ui/app/detail/DetailCSSEditor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import UiCodemirror from '@root/src/pages/components/ui/UiCodemirror.vue';
2323
import { useAppProvider } from '../../app-plugin';
2424
2525
interface Props {
26-
styleId: string;
26+
styleId?: string;
2727
modelValue: string;
2828
}
2929
const props = withDefaults(defineProps<Props>(), {

src/pages/content/ui/app/detail/DetailHeader.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import { EL_ATTR_NAME, SESSION_STORAGE_KEY } from '@root/src/utils/constant';
2020
import { XIcon, GripHorizontalIcon } from 'lucide-vue-next';
2121
2222
interface Props {
23-
selectedEl: Element;
24-
containerEl: Element;
23+
selectedEl?: Element;
24+
containerEl?: Element;
2525
lastPosition: null | { x: number; y: number };
2626
}
2727

0 commit comments

Comments
 (0)