Function transformVNodeArgs

  • Internal API for registering an arguments transform for createVNode used for creating stubs in the test-utils It is internal but needs to be exposed for test-utils to pick up proper typings

    Parameters

    • Optional transformer: ((args, instance) => [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: Data & VNodeProps, children?: unknown, patchFlag?: number, dynamicProps?: string[], isBlockNode?: boolean])
        • (args, instance): [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: Data & VNodeProps, children?: unknown, patchFlag?: number, dynamicProps?: string[], isBlockNode?: boolean]
        • Parameters

          Returns [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: Data & VNodeProps, children?: unknown, patchFlag?: number, dynamicProps?: string[], isBlockNode?: boolean]

    Returns void

Generated using TypeDoc