Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update theme types #1542

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
};
}
Loading