Browse Source

chore: remove json file type declare (#7514)

pull/7414/head
extclp 7 months ago committed by GitHub
parent
commit
eedd7f3302
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      loader.js
  2. 5
      site/typings/index.d.ts
  3. 3
      tsconfig.json
  4. 5
      typings/custom-typings.d.ts
  5. 2
      typings/index.d.ts
  6. 42
      typings/vue-tsx-shim.d.ts

13
loader.js

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

5
site/typings/index.d.ts vendored

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

3
tsconfig.json

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

5
typings/custom-typings.d.ts vendored

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

2
typings/index.d.ts vendored

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

42
typings/vue-tsx-shim.d.ts vendored

@ -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;
}
}
Loading…
Cancel
Save