I always thought we can't access JS Object Literal value in same object as stated here,
Access JavaScript Object Literal value in same object
But I came across this library which is doing exactly opposite. It most likely be something I am missing but I can't figure it out.
Here is how library doing it, http://image.prntscr.com/image/2cd771f00f604b51be4b7befca49709e.png
And it's not using "this" as well to access "defaults"
Edit
Seems like latest revision of library doesn't has the same code. But I am looking at exercise files of this course,
https://app.pluralsight.com/library/courses/typescript/table-of-contents