Skip to content

Commit 2fd0459

Browse files
committed
fix: ts error
1 parent 81e1583 commit 2fd0459

File tree

9 files changed

+18
-7
lines changed

9 files changed

+18
-7
lines changed

components/_util/classNames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type ClassValue =
1616
| boolean;
1717

1818
function classNames(...args: ClassValue[]): string {
19-
const classes = [];
19+
const classes: string[] = [];
2020
for (let i = 0; i < args.length; i++) {
2121
const value = args[i];
2222
if (!value) {

components/_util/vue-types/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { PropType } from 'vue';
22
import isPlainObject from 'lodash-es/isPlainObject';
33
import { toType, getType, isFunction, validateType, isInteger, isArray, warn } from './utils';
4-
interface BaseTypes {
5-
type: any;
6-
def: Function;
7-
validator: Function;
8-
}
4+
5+
// interface BaseTypes {
6+
// type: any;
7+
// def: Function;
8+
// validator: Function;
9+
// }
10+
911
const PropTypes = {
1012
get any() {
1113
return toType('any', {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defaultTo } from 'lodash-es';
2+
import Empty from '../components/empty';
3+
import '../components/empty/style';
4+
5+
export default {
6+
render() {
7+
return <Empty />;
8+
},
9+
};

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"jsx": "preserve",
1313
"noUnusedParameters": true,
1414
"noUnusedLocals": true,
15-
"noImplicitAny": true,
15+
"noImplicitAny": false,
1616
"target": "es6",
1717
"lib": ["dom", "es2017"],
1818
"skipLibCheck": true

0 commit comments

Comments
 (0)