VirtualInternalConstructs a new component, validating that GOV.UK Frontend is supported
Optional$root: null | ElementHTML element to use for component
Optionalconfig: ConfigurationTypeHTML element to use for component
Protected$rootProtectedReturns the root element of the component
ProtectedconfigProtectedReturns the root element of the component
Internal VirtualconfigOverride
Function which defines configuration overrides to prioritize properties from the root element's dataset.
It should take a subset of configuration as input and return a new configuration object with properties that should be overridden based on the root element's dataset. A Symbol is used for indexing to prevent conflicts.
Optionalparam: Partial<ConfigurationType>Configuration object
return - Configuration object
Staticcheck
Base Component class
Centralises the behaviours shared by our components