Skip to content

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

@mike-north

Description

@mike-north

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

Metadata

Metadata

Assignees

Labels

bugtypes:coreSomething is wrong with the Ember type definitions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions