Skip to content

Commit

Permalink
fixup! Feat(web-react): UNSAFE_classname in elementTypes components
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelklibani committed Feb 4, 2025
1 parent ee75499 commit e252a31
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/web-react/src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
/* eslint-disable @typescript-eslint/ban-types */
import type { ExoticComponent, FC, StaticLifecycle } from 'react';

declare module '*.md' {
const content: string;
export default content;
}

interface Window {
console: Console;
}
Expand All @@ -18,11 +13,17 @@ interface Window {
* Try `npm i --save-dev @types/prettier` if it exists or add a new declaration (.d.ts) file containing `declare module 'prettier';`
* 5 import { BuiltInParserName } from 'prettier';
*/
declare module 'prettier' {
export type BuiltInParserName = unknown;
}

declare global {
module '*.md' {
const content: string;
export default content;
}

module 'prettier' {
export type BuiltInParserName = unknown;
}

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

0 comments on commit e252a31

Please sign in to comment.