Created
November 28, 2018 13:14
-
-
Save maxmumford/e603be82bc590d8b3f5e2204a43d110f to your computer and use it in GitHub Desktop.
TypeScript type definition for document-offset npm package
This file contains hidden or 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
declare module 'document-offset' { | |
export default function offset(ele: HTMLElement): {top: number, left: number}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use with
import offset from 'document-offset';