errata
errata
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
(so long as I don't do something like swap the names of compatible types)
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
which is good
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
though, the compiler will error and I won't be able to build a broken app, even if I do have some strings to rename
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
i.e. I'm using ts in the first place because I want things like refactorings to be no-brainer operations
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
no lost functionality when used for that kind of thing
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
yeah I'm using that kind of syntax for validations on primitives
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
right but 'TestAction1 | TestAction2'
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
yeah, if i rename something via the editor, I don't want to have to think about whether I have a string somewhere with the wrong name
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
for example
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
too much magic for me
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
refactoring
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
I don't like the strings
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
and/or make .or take multiple arguments e.g. .or(...types)
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
type.union?
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
though I'm not keen on the chaining
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
totally
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
and .or is fine as well
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
enumerated is ok, that's actually how I assumed it worked previously
77 replies
Aarktype
Created by errata on 9/11/2024 in #questions
extracting redux-like actions from type.enumerated discriminated union
ok ok, thank you that makes sense
77 replies