ant-design-vue/examples/App.tsx

23 lines
395 B
TypeScript
Raw Normal View History

2020-10-01 12:57:03 +00:00
import Empty from '../components/empty';
import '../components/empty/style';
2020-10-01 14:48:33 +00:00
type TypeName<T> = T extends string
? 'string'
: T extends number
? 'number'
: T extends boolean
? 'boolean'
: T extends undefined
? 'undefined'
: T extends Function
? 'function'
: 'object';
type T10 = TypeName<string | (() => void)>;
2020-10-01 12:57:03 +00:00
export default {
render() {
return <Empty />;
},
};