mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +02:00
refactor: fix a few type inconsistencies (#5788)
This commit is contained in:
parent
075234851c
commit
72990726e5
11 changed files with 28 additions and 20 deletions
|
@ -51,9 +51,8 @@ function useWindowSize(): WindowSize {
|
|||
setWindowSize(getWindowSize());
|
||||
}
|
||||
|
||||
// @ts-expect-error: annoying TS setTimeout typing...
|
||||
const timeout: number | undefined = DevSimulateSSR
|
||||
? setTimeout(updateWindowSize, 1000)
|
||||
const timeout = DevSimulateSSR
|
||||
? window.setTimeout(updateWindowSize, 1000)
|
||||
: undefined;
|
||||
|
||||
window.addEventListener('resize', updateWindowSize);
|
||||
|
|
|
@ -778,7 +778,7 @@ declare module '@theme/TagsListByLetter' {
|
|||
}
|
||||
|
||||
declare module '@theme/TagsListInline' {
|
||||
export type Tag = Readonly<{label: string; permalink}>;
|
||||
export type Tag = Readonly<{label: string; permalink: string}>;
|
||||
export interface Props {
|
||||
readonly tags: readonly Tag[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue