Skip to content

Commit

Permalink
Match requestIdleCallback definition with lib.dom (#191)
Browse files Browse the repository at this point in the history
Somewhere in Typescript v4.4.x, requestIdleCallback definitions were added to lib.dom.d.ts. This commit aligns this repo's
version of them with the official versions. https://github.com/microsoft/TypeScript/blob/v4.4.2/lib/lib.dom.d.ts#L17326
  • Loading branch information
jkjustjoshing committed Sep 21, 2021
1 parent 84d2f5f commit 6f40164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Expand Up @@ -4,9 +4,9 @@ import * as MDX from '@mdx-js/react'
import { MDXRemoteSerializeResult } from './types'

// requestIdleCallback types found here: https://github.com/microsoft/TypeScript/issues/21309
type RequestIdleCallbackHandle = any
type RequestIdleCallbackHandle = number
type RequestIdleCallbackOptions = {
timeout: number
timeout?: number
}
type RequestIdleCallbackDeadline = {
readonly didTimeout: boolean
Expand Down

0 comments on commit 6f40164

Please sign in to comment.