Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! UNSAFE classname test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Jan 30, 2025
1 parent 0a1ec14 commit 96b1267
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
19 changes: 19 additions & 0 deletions packages/web-react/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* eslint-disable @typescript-eslint/ban-types */
import type { ExoticComponent, FC, StaticLifecycle } from 'react';

declare module '*.md' {
const content: string;
export default content;
Expand All @@ -18,3 +21,19 @@ interface Window {
declare module 'prettier' {
export type BuiltInParserName = unknown;
}

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;
}
}
}
19 changes: 0 additions & 19 deletions packages/web-react/src/types/shared/SpiritComponentType.d.ts

This file was deleted.

0 comments on commit 96b1267

Please sign in to comment.