Skip to content

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 15, 2019

Documenting useful application of module augmentation to use non-standard attributes. Based on @ferdaber's DefinitelyTyped/DefinitelyTyped#37590 (comment).

Got two PRs already concerned with this. Might help to have a written solution we can point to.

@eps1lon eps1lon added the ADVANCED Advanced Cheatsheet label Sep 15, 2019
@eps1lon eps1lon requested a review from ferdaber September 15, 2019 13:03
@swyxio
Copy link
Collaborator

swyxio commented Sep 16, 2019

always handy to have module augmentation examples! this shit was so hard for me when i was learning, now i do it without blinking

@swyxio
Copy link
Collaborator

swyxio commented Sep 16, 2019

leaving it up to you or ferdy to merge

@ferdaber ferdaber merged commit 0d88dfd into typescript-cheatsheets:master Sep 17, 2019
@ferdaber
Copy link
Collaborator

I still can't module augment without messing up the first 3 times 🙃

@swyxio
Copy link
Collaborator

swyxio commented Sep 17, 2019

clipboard manager bro. i just have an example saved good to go with all the usual patterns

@eps1lon eps1lon deleted the feat/augment-non-standard-props branch September 17, 2019 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADVANCED Advanced Cheatsheet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants