question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an IdentifiedRef.get() alias for unwrap

See original GitHub issue

With IdentifiedRef, I’m finding it common to do project.someRelation.unwrap() (as long as the relation is already init’d). It seems like project.someRelation.get() would be more idiomatic, and similar to project.someCollection.getItems().

Granted, there is a get(key: K) (or what not) method right now, so that name is “taken”, however TypeScript does support declaring multiple type declarations for a single method, so get could return T if given no args, and T[K] if key is present.

Does that seem okay?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lookfirstcommented, Jan 20, 2020

Node 10 and always latest TS, is fine with me. TS moves so quickly and has been very backwards compatible that I don’t see an issue with requiring it.

0reactions
lookfirstcommented, Jan 27, 2020

nice…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I create aliases of objects that inherit only a particular ...
You could link them up by adding an alias_of attribute to signify what a name is an alias of. If you pair it...
Read more >
Is it possible to unwrap a 3D curve in Alias for 2D printing?
Solved: Hi, everyone. I have searched for other questions regarding unwrapping 3D curves and/or surfaces, but all I saw were suggestions to ...
Read more >
Alias Maya tutorial - UV unwrapping basics - YouTube
Wood grain? Metal brushing? Fabrics? Tactile patterns? Product graphics? With UV unwrapping in Autodesk Maya, you can easily ensure your ...
Read more >
Managing Aliases | Gmail - Google Developers
Send-as aliases represent the email addresses an account can send mail from. Each account always has at least one alias to represent the...
Read more >
Add or delete an alternate email address (email alias)
Find a user's email alias in the Admin console; How users send email from an alias. As a Google Workspace administrator, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found