Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created November 14, 2019 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CharlieGreenman/4b76c0a2012ace1cd4a474534ff23a92 to your computer and use it in GitHub Desktop.
Save CharlieGreenman/4b76c0a2012ace1cd4a474534ff23a92 to your computer and use it in GitHub Desktop.
Example snippet from the moment.js declaration file
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