Skip to content

Commit

Permalink
fix(useLockBodyScroll): infer overflow type directly from declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 1, 2019
1 parent d08490d commit 26baf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useLockBodyScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getClosestBody(el: Element | HTMLElement | HTMLIFrameElement | n

export interface BodyInfoItem {
counter: number;
initialOverflow: string | null;
initialOverflow: CSSStyleDeclaration['overflow'];
}

const bodies: Map<HTMLElement, BodyInfoItem> = new Map();
Expand Down

0 comments on commit 26baf47

Please sign in to comment.