Skip to content
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

Typescript support #16

Open
juanfernandoe opened this issue May 5, 2018 · 9 comments
Open

Typescript support #16

juanfernandoe opened this issue May 5, 2018 · 9 comments

Comments

@juanfernandoe
Copy link

Hi,

First of all, thank you for your excellent work.
Could you provide typings file in order to be able to work with typescript ?

@AlexandreBonaventure
Copy link
Owner

Thanks that's a good idea, intend to implement when I have a little time

@avxkim
Copy link

avxkim commented Sep 19, 2019

Any news on this?

@juanpprieto
Copy link

+1

1 similar comment
@AndriiKost
Copy link

+1

@re2005
Copy link

re2005 commented Jan 20, 2020

Create a file: vue-mq.d.ts

    declare module 'vue-mq' {
        import {PluginObject} from 'vue';

        interface VueMq extends PluginObject<any> {
            VueMq: VueMq;
        }

        const VueMq: VueMq;
        export default VueMq;
    }

@re2005
Copy link

re2005 commented Jan 23, 2020

Or an alternative for it:
https://www.npmjs.com/package/vue-media-q

@patarapolw
Copy link

I only need this at present,

// declaration.d.ts

import Vue from 'vue'

declare module 'vue/types/vue' {
  interface Vue {
    $mq: 'sm' | 'md' | 'lg'  // Or keyof BreakpointRecord
  }
}

@wangxpert
Copy link

Does still library provide typescript yet??
It will be really great if we have typescript version for this package.

@wangxpert
Copy link

Thanks that's a good idea, intend to implement when I have a little time

@AlexandreBonaventure
Any news??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants