File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,20 @@ export {
207
207
createCommentVNode ,
208
208
createStaticVNode
209
209
} from './vnode'
210
- export { toDisplayString , camelize } from '@vue/shared'
210
+
211
+ // a bit of ceremony to mark these internal only here because we need to include
212
+ // them in @vue /shared's typings
213
+ import { toDisplayString , camelize } from '@vue/shared'
214
+ /**
215
+ * @internal
216
+ */
217
+ const _toDisplayString = toDisplayString
218
+ /**
219
+ * @internal
220
+ */
221
+ const _camelize = camelize
222
+ export { _toDisplayString as toDisplayString , _camelize as camelize }
223
+
211
224
// For integration with runtime compiler
212
225
export { registerRuntimeCompiler } from './component'
213
226
// For test-utils
Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ const cacheStringFunction = <T extends (str: string) => string>(fn: T): T => {
89
89
}
90
90
91
91
const camelizeRE = / - ( \w ) / g
92
- /**
93
- * @internal
94
- */
95
92
export const camelize = cacheStringFunction (
96
93
( str : string ) : string => {
97
94
return str . replace ( camelizeRE , ( _ , c ) => ( c ? c . toUpperCase ( ) : '' ) )
@@ -115,10 +112,7 @@ export const capitalize = cacheStringFunction(
115
112
export const hasChanged = ( value : any , oldValue : any ) : boolean =>
116
113
value !== oldValue && ( value === value || oldValue === oldValue )
117
114
118
- /**
119
- * For converting {{ interpolation }} values to displayed strings.
120
- * @internal
121
- */
115
+ // For converting {{ interpolation }} values to displayed strings.
122
116
export const toDisplayString = ( val : unknown ) : string => {
123
117
return val == null
124
118
? ''
You can’t perform that action at this time.
0 commit comments