Pseudotronics
Pseudotronics
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
It was simple enough to make the extends condition not be true for my application.
KeysOfType<config, type1>;
KeysOfType<config, type1>;
Works great after making the types be incompatible with one another. Thanks again for all of your insight.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
Ah that makes sense. I think I may need to take a different approach to the structure of my project to avoid this. Thanks for all the help.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
Interesting. If I remove the optional attribute from the interfaces I can have it like that.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
That is generally the behavior I want, but I don't know how to write KeysOfType to make that happen, or even if it is possible.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
I guess I don't understand why doing something like this:
type Type1Key = KeysOfType<config, type1>;
type Type1Key = KeysOfType<config, type1>;
Doesn't work.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
I am thinking that I may have to narrow the Part<T,K> to the specific interface being passed through. I don't know how to do that though.
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
here is a full example of the error:
15 replies
SSolidJS
Created by Pseudotronics on 6/26/2024 in #support
setStore TypeScript Issue
Yeah, I noticed that too. I do not however know enough to say if this issue is a bug or not. Perhaps i will make an issue on the repo and see what people have to say.
15 replies
SSolidJS
Created by Pseudotronics on 4/19/2024 in #support
How to make a reactive copy of a store.
Using const [configCopy, setConfigCopy] = createStore<Config>(structuredClone(unwrap(props.device.config))); seems to do the trick! Thanks again.
4 replies
SSolidJS
Created by Pseudotronics on 4/19/2024 in #support
How to make a reactive copy of a store.
Thanks ill give that a try
4 replies