jd-opensource / jd-opensource/nutui-bingo
代码有bug?
- Dominant language
- Vue
- Stars
- 482
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
src/packages/utils/create/component.ts:14:13 - error TS2352: Conversion of type '>, Props extends Readonly>>(_component: { ...; }) => (props: Record<...> & {}) => any' to type '{ , E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType> = {}>(setup: (props: Props, ctx: SetupContext) => RenderFunction | Promise<...>, options?: (Pick<...> & { ...; }) | undefined): (props: Props & EmitsToProps<...>) => any; & {}) => any' is not comparable to type 'DefineComponent, {} | { [x: string]: any; }, any>'.
Type '(props: Record & {}) => any' is not comparable to type 'ComponentPublicInstanceConstructor'.
Type '(props: Record & {}) => any' provides no match for the signature 'new (...args: any[]): any'.
14 create: function <
~~~~~~~~~~
15 PropsOptions extends Readonly,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
32 return defineComponent(_component as any);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33 } as typeof defineComponent,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/packages/utils/create/component.ts:14
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.