Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Refactor(web-…
Browse files Browse the repository at this point in the history
…react): step further
  • Loading branch information
pavelklibani committed Jan 15, 2025
1 parent 3ed7ac6 commit 4b6dfe6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/web-react/src/types/shared/NamedExoticComponent.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* eslint-disable @typescript-eslint/ban-types */

import type { ExoticComponent, FC, StaticLifecycle } from 'react';

declare global {
namespace React {
interface NamedExoticComponent<P = {}> extends ExoticComponent<P> {
spiritComponent?: string;
}

interface FunctionComponent<P = {}> extends FC<P> {
spiritComponent?: string;
}

interface ComponentClass<P = {}, S = {}> extends StaticLifecycle<P, S> {
spiritComponent?: string;
}
}
}

0 comments on commit 4b6dfe6

Please sign in to comment.