diff --git a/packages/web-react/src/types/shared/NamedExoticComponent.d.ts b/packages/web-react/src/types/shared/NamedExoticComponent.d.ts new file mode 100644 index 0000000000..b62a6b6cfb --- /dev/null +++ b/packages/web-react/src/types/shared/NamedExoticComponent.d.ts @@ -0,0 +1,19 @@ +/* eslint-disable @typescript-eslint/ban-types */ + +import type { ExoticComponent, FC, StaticLifecycle } from 'react'; + +declare global { + namespace React { + interface NamedExoticComponent

extends ExoticComponent

{ + spiritComponent?: string; + } + + interface FunctionComponent

extends FC

{ + spiritComponent?: string; + } + + interface ComponentClass

extends StaticLifecycle { + spiritComponent?: string; + } + } +}