Last active
September 8, 2020 15:26
-
-
Save carpben/396e175d056bfdd25e23f1a978c589f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Original */ | |
import DR from "general/types" | |
interface IScrollLockProps { | |
accountForScrollbars?: boolean | |
touchScrollTarget?: HTMLElement | |
} | |
declare module "react-scrolllock" { | |
const ScrollLock: new () => React.SFC<IScrollLockProps> | |
export = ScrollLock | |
} | |
declare module "emotion" { | |
export const css: (...args: DR<Array<Interpolation>>) => string | |
} | |
/** Updated */ | |
import { _DeepReadonlyArray } from "utility-types/dist/mapped-types" | |
interface IScrollLockProps { | |
accountForScrollbars?: boolean | |
touchScrollTarget?: HTMLElement | |
} | |
declare module "react-scrolllock" { | |
const ScrollLock: new () => React.SFC<IScrollLockProps> | |
export = ScrollLock | |
} | |
declare module "emotion" { | |
export const css: (...args: _DeepReadonlyArray<Interpolation>) => string | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated caused the following error: