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.

[types] Ensure we export symbols that are appropriately types, values or both

See original GitHub issue

Which package(s) does this problem pertain to?

What are instructions we can follow to reproduce the issue?

example repro case: I want to acquire a type that represents an instance of the ember-data store.

Today I have to do something like

type Store = InstanceType<typeof Store>;

This is because Store represented as only a value. Passing it through the InstanceOf<typeof x> effectively converts the value to a factory type, and then gets the instance produced by the factory.

Now about that bug. What did you expect to see?

All services, etc… should behave just like native classes. No type query or instanceof should be required for use

CC: @runspired

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
mike-northcommented, Jul 18, 2019

Since this has been in the way of ember-data’s TypeScript conversion and my team is sort of held up (or having to take on tech debt) until this is fixed, I’ll take the time to write this up and circulate it amongst typed-ember core.

We should then ensure that PRs opened against @types/{rsvp,ember*,qunit} align with these conventions

2reactions
dfreemancommented, Jul 18, 2019

Agreed on all counts. I think a page in the docs that’s maybe some combination of “specific guidelines for updating @types/ember*” + “general guide for writing type declarations” would be super useful as a resource.

Read more comments on GitHub >

github_iconTop Results From Across the Web

D112735 export unique symbol list with llvm-nm new option
print out the unique and sorted export symbols (print the symbol name and visibility). there are two new options are add in the...
Read more >
21. Programming in the Large: Packages and Symbols
The kind of programming that relies on a symbol data type is called, appropriately enough, symbolic computation. It's typically contrasted to numeric ...
Read more >
Creating custom symbol images for your app - Apple Developer
Distribute your custom symbol​​ There are two options to consider when distributing a symbol. Choose File > Export Symbol to begin. At the...
Read more >
17.2 Controlling the Exported Symbols of Shared Libraries
17.2 Controlling the Exported Symbols of Shared Libraries. The lib-symbol-visibility module allows precise control of the symbols exported by a shared ...
Read more >
How to hide the exported symbols name within a shared library
In Windows, you can export a function by only place a integer ID (the ordinal) with an empty name. To show it, the...
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