We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2eda1f7 commit c62cd39Copy full SHA for c62cd39
rollup.config.js
@@ -26,6 +26,7 @@ function createEntry(options) {
26
'lodash/camelCase',
27
'lodash/upperFirst',
28
'lodash/kebabCase',
29
+ 'lodash/isString',
30
'lodash/flow'
31
],
32
plugins: [resolve()],
src/utils.ts
@@ -1,12 +1,9 @@
1
import camelCase from 'lodash/camelCase'
2
import upperFirst from 'lodash/upperFirst'
3
import kebabCase from 'lodash/kebabCase'
4
+import isString from 'lodash/isString'
5
import flow from 'lodash/flow'
6
7
const pascalCase = flow(camelCase, upperFirst)
8
-function isString(val: unknown): val is String {
9
- return typeof val === 'string'
10
-}
11
-
12
export { kebabCase, pascalCase, isString }
0 commit comments