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

fix(dts): Fix build dts error (fix #520) #521

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0x-jerry
Copy link

@0x-jerry 0x-jerry commented Nov 8, 2024

Before this PR, build dts for CameraControls/MapControls/OrbitControls components will failed because of error TS7056, this should fix issue #520.

src/core/controls/OrbitControls.vue:797:1 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

797 export default (await import('vue')).defineComponent({
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
798 setup() {
    ~~~~~~~~~
... 
805 props: {} as __VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, typeof __VLS_withDefaultsArg>,
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
806 });

After this PR, the error TS7056 will disappear.

Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit 35ed8f3
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/672da8ddf8edf800086e87bc
😎 Deploy Preview https://deploy-preview-521--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant