-
Notifications
You must be signed in to change notification settings - Fork 8
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
Import interfaces instead of copying interfaces #184
Comments
I did try importing it a while ago, but the file got very big, so I manually added the needed types |
Can you give me an example how to import it? If I just import the interfaces, they cannot be used in the code editor. I tried to do it with the getTemplateSrv interface. I replaced the interface with the library import, the build was successful, but not usable in the code editor. |
I don't remember how I did it, I think I built the type files with tsc and linked them to the project. I could try to make a new attempt at this at some point again. |
@ZuperZee Would be nice :) |
I've tested a little with the sizes on https://github.com/ZuperZee/declaration-dev. I haven't decided yet whether to add a build step to do this for the plugin, but I might. |
What would you like to be added:
The interfaces in /src/components/CodeEditor/declarations are copied from the grafana library.
Why is this needed:
Is this possible in principle?
The text was updated successfully, but these errors were encountered: