chore: add explainations for biome-lint, clear unused export
This commit is contained in:
parent
3251a07ae0
commit
ced13ff12b
5 changed files with 5 additions and 10 deletions
|
@ -81,7 +81,7 @@ import MkButton from "@/components/MkButton.vue";
|
||||||
import { i18n } from "@/i18n";
|
import { i18n } from "@/i18n";
|
||||||
import { defaultStore } from "@/store";
|
import { defaultStore } from "@/store";
|
||||||
|
|
||||||
// biome-ignore lint/suspicious/noExplicitAny:
|
// biome-ignore lint/suspicious/noExplicitAny: Used Intentionally
|
||||||
export type PagingKey = TypeUtils.EndpointsOf<any[]>;
|
export type PagingKey = TypeUtils.EndpointsOf<any[]>;
|
||||||
|
|
||||||
export interface Paging<E extends PagingKey = PagingKey> {
|
export interface Paging<E extends PagingKey = PagingKey> {
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed } from "vue";
|
import { computed } from "vue";
|
||||||
|
|
||||||
// biome-ignore lint/suspicious/noExplicitAny:
|
// biome-ignore lint/suspicious/noExplicitAny: FIXME
|
||||||
type ValueType = any;
|
type ValueType = any;
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
|
@ -60,6 +60,7 @@ export default defineComponent({
|
||||||
h(
|
h(
|
||||||
MkRadio,
|
MkRadio,
|
||||||
{
|
{
|
||||||
|
// FIXME: It seems that there is a type error
|
||||||
key: option.key,
|
key: option.key,
|
||||||
value: option.props?.value,
|
value: option.props?.value,
|
||||||
disabled: option.props?.disabled,
|
disabled: option.props?.disabled,
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default defineComponent({
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
p: {
|
p: {
|
||||||
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
// biome-ignore lint/suspicious/noExplicitAny: FIXME
|
||||||
type: Function as PropType<() => Promise<any>>,
|
type: Function as PropType<() => Promise<any>>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
import type { Endpoints } from "./api.types";
|
import type { Endpoints } from "./api.types";
|
||||||
|
|
||||||
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <
|
type PropertyOfType<Type, U> = {
|
||||||
T,
|
|
||||||
>() => T extends Y ? 1 : 2
|
|
||||||
? true
|
|
||||||
: false;
|
|
||||||
|
|
||||||
export type PropertyOfType<Type, U> = {
|
|
||||||
[K in keyof Type]: Type[K] extends U ? K : never;
|
[K in keyof Type]: Type[K] extends U ? K : never;
|
||||||
}[keyof Type];
|
}[keyof Type];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue