You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2023. It is now read-only.
This is mostly a Typescript question more than anything else with OClif itself. I want to create a BaseCommand and define some additional parameters. One such is a getter for flags. I cannot figure out how to set the type of it though so it's dynamic based on whatever the implemented class is:
exportabstractclassBaseCommandextendsCommand{protectedflags: WhatToPutHere;asyncrun(){this.flags=this.parse(this.constructor).flags;}}classMyCommandextendsBaseCommand{staticflags={version: flags.string()}asyncrun(){// I want to access this.flags.version}}