Skip to content

Instantly share code, notes, and snippets.

@mstssk
Created May 31, 2019 04:00
Show Gist options
  • Save mstssk/1bbfe470a3f486f5aee9f04907858064 to your computer and use it in GitHub Desktop.
Save mstssk/1bbfe470a3f486f5aee9f04907858064 to your computer and use it in GitHub Desktop.
import Vue from "vue";
import { Store } from "vuex";
export default class VueGenericComponent<
T extends HTMLElement = HTMLElement,
S extends Store<any> = Store<any>
> extends Vue {
$el: T;
$store: S;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment