Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix: gen-apiが正常に走るように #343

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/components/shared/InputSelectSingle.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<script lang="ts" setup>
import { ChevronDownIcon } from '@heroicons/vue/24/solid'
import { computed, onMounted, onUnmounted, ref, watch } from 'vue'
import { ChevronDownIcon } from '@heroicons/vue/24/solid';
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
type ValueValue = Record<string, unknown> | string | null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
type ValueValue = Record<string, any> | string | null
interface Value {
key: string
Expand Down
11 changes: 6 additions & 5 deletions src/components/shared/MarkdownTextarea.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script lang="ts" setup>
import { computed, ref } from 'vue'
import InputTextarea from './InputTextarea.vue'
import MarkdownIt from './MarkdownIt.vue'
import InputSelectSingle from '/@/components/shared/InputSelectSingle.vue'
import { computed, ref } from 'vue';
import InputTextarea from './InputTextarea.vue';
import MarkdownIt from './MarkdownIt.vue';
import InputSelectSingle from '/@/components/shared/InputSelectSingle.vue';
type TabType = 'input' | 'preview'
interface Props {
Expand Down Expand Up @@ -31,7 +31,8 @@ const templateOptions = computed(
}) ?? []
)
function setTemplate(template: Record<string, unknown> | string | null) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- FIXME: InputSelectSingleを直す
function setTemplate(template: Record<string, any> | string | null) {
if (typeof template !== 'string') {
return
}
Expand Down
7 changes: 2 additions & 5 deletions src/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

declare module '*.vue' {
import type { DefineComponent } from 'vue'
const component: DefineComponent<
Record<string, unknown>,
Record<string, unknown>,
unknown
>
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-empty-object-type
const component: DefineComponent<{}, {}, any>
export default component
}

Expand Down