chore: migrate local from js to ts
parent
0728c900af
commit
34ac8444f4
|
@ -63,7 +63,7 @@ export const isArray =
|
||||||
* @param {any} value - Value to check
|
* @param {any} value - Value to check
|
||||||
* @returns {boolean}
|
* @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
|
* Adds a `def` method to the object returning a new object with passed in argument as `default` property
|
|
@ -9,7 +9,7 @@ const RenderEmpty = {
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const configProvider = inject('configProvider', ConfigConsumerProps);
|
const configProvider = inject('configProvider', ConfigConsumerProps);
|
||||||
function renderHtml(componentName) {
|
function renderHtml(componentName: string) {
|
||||||
const getPrefixCls = configProvider.getPrefixCls;
|
const getPrefixCls = configProvider.getPrefixCls;
|
||||||
const prefix = getPrefixCls('empty');
|
const prefix = getPrefixCls('empty');
|
||||||
switch (componentName) {
|
switch (componentName) {
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue