UNPKG

@nextcloud/vue

Version:
9 lines (8 loc) 471 B
import { AllowedComponentProps, Component, VNodeProps } from 'vue'; export type ComponentProps<C extends Component> = C extends new (...args: any) => any ? Omit<InstanceType<C>['$props'], keyof VNodeProps | keyof AllowedComponentProps | `on${string}`> : never; type ClassType = string | Record<string, boolean | undefined>; export type VueClassType = ClassType | ClassType[] | VueClassType[]; export type Writable<T> = { -readonly [P in keyof T]: T[P]; }; export {};