Created
November 14, 2019 10:41
-
-
Save CharlieGreenman/4b76c0a2012ace1cd4a474534ff23a92 to your computer and use it in GitHub Desktop.
Example snippet from the moment.js declaration file
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
declare namespace moment { | |
//.. | |
interface Moment extends Object { | |
format(format?: string): string; | |
startOf(unitOfTime: unitOfTime.StartOf): Moment; | |
endOf(unitOfTime: unitOfTime.StartOf): Moment; | |
//.. | |
} | |
//.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment