chore: migrate local from js to ts

pull/2926/head
Amour1688 2020-08-15 14:43:14 +08:00
parent 0728c900af
commit 34ac8444f4
266 changed files with 46 additions and 13 deletions

View File

@ -63,7 +63,7 @@ export const isArray =
* @param {any} value - Value to check
* @returns {boolean}
*/
export const isFunction = value => toString.call(value) === '[object Function]';
export const isFunction = (value: any) => toString.call(value) === '[object Function]';
/**
* Adds a `def` method to the object returning a new object with passed in argument as `default` property

View File

@ -9,7 +9,7 @@ const RenderEmpty = {
},
setup(props) {
const configProvider = inject('configProvider', ConfigConsumerProps);
function renderHtml(componentName) {
function renderHtml(componentName: string) {
const getPrefixCls = configProvider.getPrefixCls;
const prefix = getPrefixCls('empty');
switch (componentName) {

Some files were not shown because too many files have changed in this diff Show More