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 { defaultStore } from "@/store";
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny:
|
||||
// biome-ignore lint/suspicious/noExplicitAny: Used Intentionally
|
||||
export type PagingKey = TypeUtils.EndpointsOf<any[]>;
|
||||
|
||||
export interface Paging<E extends PagingKey = PagingKey> {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<script lang="ts" setup>
|
||||
import { computed } from "vue";
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny:
|
||||
// biome-ignore lint/suspicious/noExplicitAny: FIXME
|
||||
type ValueType = any;
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -60,6 +60,7 @@ export default defineComponent({
|
|||
h(
|
||||
MkRadio,
|
||||
{
|
||||
// FIXME: It seems that there is a type error
|
||||
key: option.key,
|
||||
value: option.props?.value,
|
||||
disabled: option.props?.disabled,
|
||||
|
|
|
@ -39,7 +39,7 @@ export default defineComponent({
|
|||
|
||||
props: {
|
||||
p: {
|
||||
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
||||
// biome-ignore lint/suspicious/noExplicitAny: FIXME
|
||||
type: Function as PropType<() => Promise<any>>,
|
||||
required: true,
|
||||
},
|
||||
|
|
|
@ -1,12 +1,6 @@
|
|||
import type { Endpoints } from "./api.types";
|
||||
|
||||
export type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends <
|
||||
T,
|
||||
>() => T extends Y ? 1 : 2
|
||||
? true
|
||||
: false;
|
||||
|
||||
export type PropertyOfType<Type, U> = {
|
||||
type PropertyOfType<Type, U> = {
|
||||
[K in keyof Type]: Type[K] extends U ? K : never;
|
||||
}[keyof Type];
|
||||
|
||||
|
|
Loading…
Reference in a new issue