You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import type { CSSProperties, VNodeChild } from 'vue'
|
|
|
|
import type { VueTypeValidableDef, VueTypesInterface } from 'vue-types'
|
|
|
|
import { createTypes } from 'vue-types'
|
|
|
|
|
|
|
|
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 }
|