Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skeleton组件源码提示类型错误 #272

Closed
ocean-gao opened this issue Feb 1, 2023 · 0 comments
Closed

Skeleton组件源码提示类型错误 #272

ocean-gao opened this issue Feb 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ocean-gao
Copy link
Collaborator

问题描述

            <div
                class={mergeAttrs.class}
                style={mergeAttrs.style as StyleValue}
            >
                {slotDefault}
            </div>

类型检查报错提示:
不能将类型“unknown”分配给类型“StyleValue”。ts(2322)

            <>
                {Array.apply(null, { length: repeat } as any).map(() => [
                    renderChild(),
                ])}
            </>

类型检查报错提示:
Use the spread operator instead of '.apply()'.eslintprefer-spread

如何复现

No response

代码

No response

预期结果

类型检查通过

环境描述/版本信息

"version": "0.7.17"

其它补充内容

No response

@ocean-gao ocean-gao added the bug Something isn't working label Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant