chore: remove json file type declare (#7514)

This commit is contained in:
extclp 2024-04-22 10:00:03 +08:00 committed by GitHub
parent c28c38d02e
commit eedd7f3302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 2 additions and 68 deletions

View File

@ -1,13 +0,0 @@
function loader() {
return `
<script>
export default {
render() {
return null;
}
}
</script>
`;
}
module.exports = loader;

View File

@ -1,5 +0,0 @@
declare module '*.json' {
const value: any;
export const version: string;
export default value;
}

View File

@ -22,7 +22,8 @@
"skipLibCheck": true,
"allowJs": true,
"importsNotUsedAsValues": "preserve",
"stripInternal": true
"stripInternal": true,
"resolveJsonModule": true
},
"exclude": [
"node_modules",

View File

@ -1,5 +0,0 @@
declare module '*.json' {
const value: any;
export const version: string;
export default value;
}

2
typings/index.d.ts vendored
View File

@ -1,2 +0,0 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="custom-typings.d.ts" />

View File

@ -1,42 +0,0 @@
import 'vue';
type EventHandler = (...args: any[]) => void;
declare module 'vue' {
interface ComponentCustomProps {
role?: string;
tabindex?: number | string;
// should be removed after Vue supported component events typing
// see: https://github.com/vuejs/vue-next/issues/1553
// https://github.com/vuejs/vue-next/issues/3029
// onBlur?: EventHandler;
// onOpen?: EventHandler;
// onEdit?: EventHandler;
// onLoad?: EventHandler;
// onClose?: EventHandler;
// onFocus?: EventHandler;
// onInput?: EventHandler;
// onClick?: EventHandler;
// onPress?: EventHandler;
// onCancel?: EventHandler;
// onChange?: EventHandler;
// onDelete?: EventHandler;
// onScroll?: EventHandler;
// onSubmit?: EventHandler;
// onSelect?: EventHandler;
// onConfirm?: EventHandler;
// onPreview?: EventHandler;
// onKeypress?: EventHandler;
// onTouchend?: EventHandler;
// onTouchmove?: EventHandler;
// onTouchstart?: EventHandler;
// onTouchcancel?: EventHandler;
// onMouseenter?: EventHandler;
// onMouseleave?: EventHandler;
// onMousemove?: EventHandler;
// onKeydown?: EventHandler;
// onKeyup?: EventHandler;
// onDeselect?: EventHandler;
// onClear?: EventHandler;
}
}