You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The README example for hooking this up uses require(), which some tooling doesn't like.
The following works for me using the import syntax:
import _ from "lodash"
import inflection from "lodash-inflection"
_.mixin(inflection)
You might consider adding this as alternative setup example.
Note that in typescript you'll have to @ts-ignore the import -- unless there's typescript bindings for the inflection functions somewhere, I couldn't find them on Definitively Typed. So that would be:
import _ from "lodash"
// @ts-ignore
import inflection from "lodash-inflection"
_.mixin(inflection)
Thanks!
The text was updated successfully, but these errors were encountered:
The README example for hooking this up uses
require()
, which some tooling doesn't like.The following works for me using the
import
syntax:You might consider adding this as alternative setup example.
Note that in typescript you'll have to
@ts-ignore
the import -- unless there's typescript bindings for the inflection functions somewhere, I couldn't find them on Definitively Typed. So that would be:Thanks!
The text was updated successfully, but these errors were encountered: