vue-reactive-provide icon indicating copy to clipboard operation
vue-reactive-provide copied to clipboard

Typescript definition

Open Blanen opened this issue 5 years ago • 2 comments

A typescript definition file would be useful.

Blanen avatar Mar 26 '19 13:03 Blanen

Oof nearly three years 😞 I may take a crack at it, but might be for my use-case and not a full definition

alexmccabe avatar Jan 20 '22 16:01 alexmccabe

For anyone looking, this will get you the Mixin working with TS

// vue-reactive-provide.d.ts
declare module 'vue-reactive-provide' {
    import Vue, { VueConstructor } from 'vue';

    interface ReactiveProvideMixinOptions {
        attrs?: boolean;
        include?: string[];
        inheritAs?: boolean;
        listeners?: boolean;
        name?: string;
        nameForComputed?: string;
        props?: boolean;
    }

    function ReactiveProvideMixin(options: ReactiveProvideMixinOptions): VueConstructor<Vue>;
}

alexmccabe avatar Jan 20 '22 16:01 alexmccabe