ts-case-convert icon indicating copy to clipboard operation
ts-case-convert copied to clipboard

Export types via root export

Open dnjstrom opened this issue 2 years ago • 1 comments

When using this package I quickly found myself wanting to use the ObjectToCamel type (and friends) to type my functions, and while they can be imported as

import type { ObjectToCamel } from 'ts-case-convert/lib/caseConvert'

I'd feel more secure relying on them if they were exported as part of the public api, i.e.

import type { ObjectToCamel } from 'ts-case-convert'

Are you open to making the types importable like that? If so, I can prepare a PR 👍

dnjstrom avatar Feb 05 '24 11:02 dnjstrom

+1 I'd very much like this as well.

real2two avatar Apr 16 '24 21:04 real2two