Skip to content

Commit c62cd39

Browse files
committed
use isString from lodash
1 parent 2eda1f7 commit c62cd39

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function createEntry(options) {
2626
'lodash/camelCase',
2727
'lodash/upperFirst',
2828
'lodash/kebabCase',
29+
'lodash/isString',
2930
'lodash/flow'
3031
],
3132
plugins: [resolve()],

src/utils.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import camelCase from 'lodash/camelCase'
22
import upperFirst from 'lodash/upperFirst'
33
import kebabCase from 'lodash/kebabCase'
4+
import isString from 'lodash/isString'
45
import flow from 'lodash/flow'
56

67
const pascalCase = flow(camelCase, upperFirst)
78

8-
function isString(val: unknown): val is String {
9-
return typeof val === 'string'
10-
}
11-
129
export { kebabCase, pascalCase, isString }

0 commit comments

Comments
 (0)