@cnamts/vue-dot
Version:
Implementation of our Design System for the French Health Insurance
36 lines (28 loc) • 671 B
TypeScript
import Vue from 'vue';
import { NavigationGuardNext } from 'vue-router';
/**
* Extend $refs, eg:
* $refs!: Refs<{
* myProp: MyType;
* }>;
*/
export type Refs<T extends Record<string, unknown>> = Vue['$refs'] & T;
export interface IndexedObject<T = string> {
[key: string]: T;
}
export type Next = NavigationGuardNext<Vue>;
export interface Dimensions {
width: string;
height: string;
}
export interface VForm {
validate: () => boolean;
reset: () => void;
resetValidation: () => void;
}
interface InputFacadeEventTarget extends EventTarget {
unmaskedValue: string;
}
export interface InputFacadeEvent extends Event {
target: InputFacadeEventTarget;
}