Skip to content

Commit

Permalink
Update ConfigurableComponent to use Component
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick committed Feb 6, 2025
1 parent 5b55e20 commit 0351872
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/govuk-frontend/src/govuk/common/configuration.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '../component.mjs'
import { ConfigError } from '../errors/index.mjs'
import { GOVUKFrontendComponent } from '../govuk-frontend-component.mjs'

import { isObject, formatErrorMessage } from './index.mjs'

Expand All @@ -13,9 +13,9 @@ export const configOverride = Symbol.for('configOverride')
* @virtual
* @template {Partial<Record<keyof ConfigurationType, unknown>>} [ConfigurationType=ObjectNested]
* @template {Element & { dataset: DOMStringMap }} [RootElementType=HTMLElement]
* @augments GOVUKFrontendComponent<RootElementType>
* @augments Component<RootElementType>
*/
export class ConfigurableComponent extends GOVUKFrontendComponent {
export class ConfigurableComponent extends Component {
/**
* configOverride
*
Expand Down Expand Up @@ -371,5 +371,5 @@ export function extractConfigByNamespace(schema, dataset, namespace) {

/**
* @template {Partial<Record<keyof ConfigurationType, unknown>>} [ConfigurationType=ObjectNested]
* @typedef {typeof GOVUKFrontendComponent & ChildClass<ConfigurationType>} ChildClassConstructor<ConfigurationType>
* @typedef {typeof Component & ChildClass<ConfigurationType>} ChildClassConstructor<ConfigurationType>
*/

0 comments on commit 0351872

Please sign in to comment.