-
-
Notifications
You must be signed in to change notification settings - Fork 7
π οΈ Refactor: no casting Vue instances as anyΒ #80
Copy link
Copy link
Open
Labels
Domain: Dev ExperienceThis issue pertains to a developer's emotions and attitudes when building Grey Software.This issue pertains to a developer's emotions and attitudes when building Grey Software.Role: Software EngineerUses technology to design, develop, test, and maintain creative software solutions.Uses technology to design, develop, test, and maintain creative software solutions.
Metadata
Metadata
Assignees
Labels
Domain: Dev ExperienceThis issue pertains to a developer's emotions and attitudes when building Grey Software.This issue pertains to a developer's emotions and attitudes when building Grey Software.Role: Software EngineerUses technology to design, develop, test, and maintain creative software solutions.Uses technology to design, develop, test, and maintain creative software solutions.
Motivation π
It's bad practice to cast types as
anyjust to circumvent TS compiler errors; that kind of defeats the purpose of type-checking if we disable its functionality every time we run into a problem. i read this article here:https://v3.vuejs.org/guide/typescript-support.html#using-with-options-api
which talks about how the TS compiler has difficulty inferring types in the Vue framework. Explicitly specifying them with an interface is the preferred method of resolution.
Originally posted by @diracs-delta in #79 (comment)
Describe your refactoring solution π οΈ
anyto circumvent TS compiler errorstsconfig.jsonthat disable casts toany