1234567891011121314151617181920212223242526272829303132333435 |
- import { createTypes } from 'vue-types';
- import type { VueTypeValidableDef, VueTypesInterface } from 'vue-types';
- import type { CSSProperties, VNodeChild } from 'vue';
- export type VueNode = VNodeChild | JSX.Element;
- type PropTypes = VueTypesInterface & {
- readonly style: VueTypeValidableDef<CSSProperties>;
- readonly VNodeChild: VueTypeValidableDef<VueNode>;
- // readonly trueBool: VueTypeValidableDef<boolean>;
- };
- const propTypes = createTypes({
- func: undefined,
- bool: undefined,
- string: undefined,
- number: undefined,
- object: undefined,
- integer: undefined,
- }) as PropTypes;
- propTypes.extend([
- {
- name: 'style',
- getter: true,
- type: [String, Object],
- default: undefined,
- },
- {
- name: 'VNodeChild',
- getter: true,
- type: undefined,
- },
- ]);
- export { propTypes };
|