Is typescript and ssr supported?

#34 · open · 1 comments

View on GitHub ↗

gustawdaniel

Comments

jacekkarczmarczyk

For TS the following shim works for me (Vue 2.x): ```ts declare module 'v-hotkey' { import { DirectiveOptions, PluginFunction } from 'vue'; type Plugin = { install: PluginFunction<{ [alias in string]?: number }>; directive: DirectiveOptions; }; const plugin: Plugin; export default plugin; } ```