createCommentVNode,
createStaticVNode
} from './vnode'
-export { toDisplayString, camelize } from '@vue/shared'
+
+// a bit of ceremony to mark these internal only here because we need to include
+// them in @vue/shared's typings
+import { toDisplayString, camelize } from '@vue/shared'
+/**
+ * @internal
+ */
+const _toDisplayString = toDisplayString
+/**
+ * @internal
+ */
+const _camelize = camelize
+export { _toDisplayString as toDisplayString, _camelize as camelize }
+
// For integration with runtime compiler
export { registerRuntimeCompiler } from './component'
// For test-utils
}
const camelizeRE = /-(\w)/g
-/**
- * @internal
- */
export const camelize = cacheStringFunction(
(str: string): string => {
return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''))
export const hasChanged = (value: any, oldValue: any): boolean =>
value !== oldValue && (value === value || oldValue === oldValue)
-/**
- * For converting {{ interpolation }} values to displayed strings.
- * @internal
- */
+// For converting {{ interpolation }} values to displayed strings.
export const toDisplayString = (val: unknown): string => {
return val == null
? ''