• 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

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

          • args: [type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: null | Data & VNodeProps, children?: unknown, patchFlag?: number, dynamicProps?: null | string[], isBlockNode?: boolean]
          • instance: null | ComponentInternalInstance

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

    Returns void