mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import Vue, { ComponentOptions } from 'vue';
|
|
import { directive, mixin } from 'vue-clickaway';
|
|
|
|
// excerpt from vue-class-component/src/declarations.ts
|
|
type VueClass<V> = { new (...args: any[]): V & Vue } & typeof Vue;
|
|
// excerpt from vue-class-component/src/index.ts
|
|
function Component(options: ComponentOptions<Vue> | VueClass<Vue>): any {
|
|
return null; // mocked
|
|
}
|
|
|
|
@Component({
|
|
directives: {
|
|
clickaway: directive,
|
|
},
|
|
})
|
|
export class ComponentWithDirective extends Vue {}
|
|
|
|
@Component({
|
|
mixins: [mixin],
|
|
})
|
|
export class ComponentWithMixin extends Vue {}
|