Skip to content

"globals" list, where global functions can be defined, so there are no warnings #2113

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

Closed
kobe-ra opened this issue Jul 30, 2023 · 1 comment

Comments

@kobe-ra
Copy link

kobe-ra commented Jul 30, 2023

Description

I'm using Laravel-Inertiajs-Svelte setup, which means I have global function route() available according to my web.php.

However, I'm getting 'route' is not defined svelte(missing-declaration) warning.
I had to ignore these warning altogether, instead of declaring my global functions.

Proposed solution

Add "globals" input array to extension settings to make users able to provide list of their global functions.

Alternatives

No response

Additional Information, eg. Screenshots

image

@jasonlyu123
Copy link
Member

Duplicate of upstream sveltejs/svelte#7240

@jasonlyu123 jasonlyu123 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2023
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

No branches or pull requests

2 participants