-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing typescript types #44
Labels
feature
New feature or request
Milestone
Comments
Typescript support will be added shortly. |
here is a workaround to get your component work with Typescript for impatient people like me 😛 . (waiting for your implementation of course 🤣 )
import Vue, { Component, PluginFunction, VueConstructor, DirectiveOptions, PluginObject, DirectiveFunction } from 'vue'
interface CurrencyDirective extends PluginObject<undefined> {
currency: DirectiveFunction;
CurrencyDirective: Component;
}
declare const CurrencyDirective: CurrencyDirective;
export = CurrencyDirective;
declare module 'vue/types/vue' {
interface Vue {
$parseCurrency(formattedValue: string | number, locale: string, currency: string): number
}
} |
dm4t2
added a commit
that referenced
this issue
Nov 17, 2019
TypeScript support has been added in Release 1.12.0 🎉 |
Still with the same error when using |
Which version? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When importing in typescript project, we are missing Types:
The text was updated successfully, but these errors were encountered: