Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[@types/ember bug] - Allow @ember/string functions to be consumed with and without proto extensions #281

Closed
1 task done
mike-north opened this issue Sep 6, 2018 · 0 comments
Assignees
Labels
bug types:core Something is wrong with the Ember type definitions

Comments

@mike-north
Copy link
Contributor

mike-north commented Sep 6, 2018

Which package(s) does this problem pertain to?

  • @types/ember

What are instructions we can follow to reproduce the issue?

import { loc, fmt } from '@ember/string';

loc("_Hello %@ %@", ["John", "Smith"]);  // $ExpectType string 💥;

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

For the example above, I expected to be able to do something like this without prototype extensions enabled

loc("_Hello %@ %@", ["John", "Smith"]); // currently fails

related docs

@mike-north mike-north added bug types:core Something is wrong with the Ember type definitions labels Sep 6, 2018
@mike-north mike-north changed the title [@types/ember bug] - Allow @ember/string stuff to be consumed with and without proto extensions [@types/ember bug] - Allow @ember/string functions to be consumed with and without proto extensions Sep 6, 2018
@mike-north mike-north self-assigned this Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug types:core Something is wrong with the Ember type definitions
Projects
None yet
Development

No branches or pull requests

1 participant