Skip to content

Commit

Permalink
Update theme types
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Apr 30, 2024
1 parent 0a51d5e commit efe901e
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions theme/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
/// <reference types="@docusaurus/theme-classic" />

declare module '@theme/CodeSnippetBlock' {
import type { Props as BaseProps } from '@theme/CodeBlock';

export interface Props extends Omit<BaseProps, 'children'> {
language: string;
code: string;
startString?: string;
endString?: string;
}

export default function CodeSnippetBlock(props: Props): JSX.Element;
}

declare module '@theme/AddToMetaMaskButton' {
export default function AddToMetaMaskButton(): JSX.Element;
}

declare module '@theme/DocBanner' {
export default function DocBanner(): JSX.Element;
}

declare module '@theme/NetworkInfo' {
export default {
IOTA: JSX.Element,
Shimmer: JSX.Element,
ShimmerEVM: JSX.Element,
ShimmerEVMAdditional: JSX.Element,
Testnet: JSX.Element,
TestnetEVM: JSX.Element,
TestnetEVMAdditional: JSX.Element,
};
}

0 comments on commit efe901e

Please sign in to comment.