-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
When I import trucate-html using:
import * as truncate from "truncate-html";Then I'm not able to call truncate("<p>my-html</p>") because TypeScript compiler complains that:
Cannot invoke an expression whose type lacks a call signature.
I'm also not able to call truncate.setup().
When I import trucate-html using:
import truncate from "truncate-html";Then TypeScript compiler doesn't complain, but there are runtime errors after compilation because truncate is undefined when imported this way.
Metadata
Metadata
Assignees
Labels
No labels