Comments (4)
Discussion from Slack
pascal wilbrink
10:51 AM
@openscd/open-scd-core is not exporting any Mixins (typed ones). Can this be fixed? Added a github issue here: #88
#88 Open-scd-core is not exporting any typed mixins.
Open-scd-core is not exporting any typed mixins.
Therefore I cannot use a mixin inside a plugin.
Can these be exported by the foundation as well?
https://github.com/[openscd/open-scd-core](https://github.com/openscd/open-scd-core)|openscd/open-scd-coreopenscd/open-scd-core | Feb 17th | Added by GitHub
white_check_mark
eyes
raised_hands
Christian
11:09 AM
Thanks, good idea!
pascal wilbrink
11:11 AM
and what about the OpenSCD class?
Christian
11:11 AM
I think we already export that from open-scd.ts, don't we? We could export the mixins from there as well. (edited)
pascal wilbrink
11:12 AM
https://www.npmjs.com/package/@openscd/open-scd-core?activeTab=explore
There's only a foundation.d.ts file in here, no open-scd.d.ts
11:13
import { OpenSCD } from '@openscd/open-scd-core/open-scd.js'; This doesn't work
import { OpenSCD } from '@openscd/open-scd-core'; Neither does this (edited)
Christian
11:22 AM
"compile": "tsc -b && tsc foundation.ts --declaration --emitDeclarationOnly --outDir dist", in package.json means we currently export types only for foundation.ts, we should add open-scd.ts to that command to fix that. We could do that in the same pull request which re-exports the mixins from open-scd.ts, what do you think?
from open-scd-core.
Let's refine this
from open-scd-core.
This won't be necessary anymore if the OpenSCD class is exported. The issue will arrise again if we start with CoMPAS based on OpenSCD-core.
from open-scd-core.
This is still an issue for me, I can't use open-scd-core in tests easily unless I either have the OpenSCD class (as a lit element with types) or I have mixins which I can wrap my plugin in.
So I'd like to re-open this and perhaps we can discuss at refinement.
from open-scd-core.
Related Issues (20)
- ADR: stable API's for OpenSCD-core/SCL-libary HOT 2
- Allow plugins to open other plugins HOT 1
- Installation instructions appear incorrect
- Unable to use the latest open-scd-core release HOT 2
- Tab bar does not show up until doc is opened
- General architecture ADR
- Versioning ADR HOT 3
- ADR: Create a mono repository HOT 2
- lit-localize cannot be used within plugins HOT 1
- Future architecture OpenSCD-core HOT 2
- OpenSCD Old architecture HOT 3
- OpenSCD-core plug-in guide HOT 4
- Catalogue of ADR's and and components HOT 1
- Allow longer menu plugin titles or menu hierarchy HOT 2
- Typing of PluginSet
- OpenEvent should be more robust HOT 1
- Update Edit API handles namespaced attributes poorly HOT 4
- Documentation: overview of the openscd-core and related repository functions HOT 1
- Plugin loading doesn't allow test automation
- Create ADR: Scoped components/ scoped elements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-scd-core.