You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// my code, similar with antdv example
import { createFromIconfontCN } from '@ant-design/icons-vue';
const IconFont = createFromIconfontCN({
scriptUrl: config.iconfontUrl
});
export default defineComponent({
components: {
IconFont
}
});
// compilation
/*
TS2769: No overload matches this call.
The last overload gave the following error.
Type 'Function' is not assignable to type 'Component<any, any, any, Record<string, ComputedGetter<any> | WritableComputedOptions<any>>, MethodOptions>'.
Type 'Function' is not assignable to type 'ComponentOptions<any, any, any, Record<string, ComputedGetter<any> | WritableComputedOptions<any>>, MethodOptions, any, any, any
>'.
Type 'Function' is not assignable to type 'ComponentOptionsBase<any, any, any, Record<string, ComputedGetter<any> | WritableComputedOptions<any>>, MethodOptions, ... 4 m
ore ..., {}>'.
Types of property 'call' are incompatible.
Type '(this: Function, thisArg: any, ...argArray: any[]) => any' is not assignable to type '(this: unknown, ...args: unknown[]) => never'.
The 'this' types of each signature are incompatible.
Type 'unknown' is not assignable to type 'Function'.
> 99 | IconFont,
| ^^^^^^^^
*/
What is expected?
fix the error
What is actually happening?
compilation fails
The text was updated successfully, but these errors were encountered:
Version
2.0.0-rc.7
Environment
Vue3.0.0, typescript3.9.3
Reproduction link
https://2x.antdv.com/components/icon-cn/#components-icon-demo-use-iconfont.cn
Steps to reproduce
What is expected?
fix the error
What is actually happening?
compilation fails
The text was updated successfully, but these errors were encountered: