Madmanali93
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Madmanali93 on 1/24/2024 in #questions
Type A is not assignable to type A & B & C. Not sure why ts infers with an `&` and not `|`
Unsure why this is happening. I am trying to create a function that can have multiple types and when a different function with a generic passing that argument it should infer it. Example below its a bit easier to understand in code that description.
https://www.typescriptlang.org/play?#code/C4TwDgpgBAglC8UDeAoK6oEsAmAuKAzsAE6YB2A5mhgIb5GmUoC+KKokUAQgstejnolyVDFABGQxlVbtw0AMK9UYwYWFMxAYykiWbDtACqAJQAyAZV4AiAPQxrUAD5QA5La6vnb2wtdzOU0sAfRMAURsAPXtHF1doz294338A43NQsKtEOBceFwU2A3koIIBZGAAFZX4oAG0AaSwyUvMLTIBdfFqmiAAPYAgybAI3aJgvAH5YKFweqH7B4dHkxOmeObFegaGRsZSoaaVNjDIIADcIYn002EqASTCTEwB5EwUXgBEsmvRG5taIXCHUm+BUGDqAGsICB8GQAK4AW3EVy6fDEAgAjAAOMgNGG6TQY840AA28IgBFBUAAFGAaCBSQB7Gh4QEVSqNDoASgQAD5kPVobD1NI0QwRFBmFBbLZCAALJnw0nYKAUCDACQawbEKAcSXieGas4QPagCBgUbAJlatVDK40QaqgDumGA8qg8OIpNGADNiEzEYRnTQKOrrmJWOhWLIUFomWQiFB49hKfgqo9nm8Pt9suiMMkJmDamJMQAGMvFjHVrA4vEEtwTAA0JZrJPJadp9MZLOwvPgAppSCgdCg3eZrIAdDRmNyWzWpfOMMwm1BaqtXFWa+XK-mF1jcfiRa5PEv91B2xSCPg6QyJ33+bTh5Ix3fe5PxLOzxio8vv8k-C3asdyA-dMDrI98BPVxvwXS9O1vHtWX7Qdhx0V8kOwSctClOdW2jWpZFkeNE01AhAwgAAxeEWkQAAeAAVBYdmWQFMgsPlb3dQkKBQvcoFJDUoGCcde3wJiXBo1NfXIU1ahIpN+ggHDEEQ+9xL48FqxEt9WV4UTWUIthtATJMU0pI9eBecQACtlOASdhQIGlzIIblJxk4YaRpSE+MhKAADIAqgEwIAoMI+jAHz3MGIguPlbleRoUZhSZX09XkNLkyZVNRkk4YIE800ZTlGiCC9aBnXlEAsE1LQaDITVyF9K49XlTACHk0zNWCczeFcyyguy3K6gGmEOmMjBMF9GkdMwwLgt6nKIF5LSMQUnr4N4JbUzqHcOkneDRiGnaID2isDqO2aDIfIzmCAA
2 replies
TTCTheo's Typesafe Cult
•Created by Madmanali93 on 3/18/2023 in #questions
Any good starter templates for electron?
It's kind of weird that their documentation has no template any where. Is there some template thats up to date that can get the intial setup for ts electron project?
3 replies
TTCTheo's Typesafe Cult
•Created by Madmanali93 on 12/27/2022 in #questions
(plugin rpt2) RollupError Unexpected token (Note that you need plugins to import files that are not
Anyone know why Rollup ts2 is throwing this error on the type?
2 replies