Skip to content

Missing htmlSafe and isHTMLSafe #235

@gentoid

Description

@gentoid

After bumping Ember to 3.24 in our project I got the following errors:

node_modules/@types/ember/index.d.ts:446:46 - error TS2339: Property 'htmlSafe' does not exist on type 'typeof import("C:/Users/.../node_modules/@ember/string/index")'.

446         const htmlSafe: typeof EmberStringNs.htmlSafe;
                                                 ~~~~~~~~

node_modules/@types/ember/index.d.ts:447:48 - error TS2339: Property 'isHTMLSafe' does not exist on type 'typeof import("C:/Users/.../node_modules/@ember/string/index")'.

447         const isHTMLSafe: typeof EmberStringNs.isHTMLSafe;
                                                   ~~~~~~~~~~

(and a screenshot of the errors if this is helpful)

image

Interestingly enough, this package exposes TS definitions, and also there're definitions at @types/ember__string. And the latter does expose htmlSafe and isHTMLSafe

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions