From 7580c774820ee99b2ebfbdbf274fe6c164b35097 Mon Sep 17 00:00:00 2001 From: Tino Koch <17991193+Tinoooo@users.noreply.github.com> Date: Thu, 22 Jun 2023 11:45:38 +0200 Subject: [PATCH] feat: export utility functions (#315) * feat: exported normalizeColor * chore: added normalizeVectorFlexibleParam to the module exports --------- Co-authored-by: Tino Koch --- playground/.eslintrc-auto-import.json | 2 +- playground/components.d.ts | 4 +++- src/index.ts | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/playground/.eslintrc-auto-import.json b/playground/.eslintrc-auto-import.json index e32b30f05..2453fb9d3 100644 --- a/playground/.eslintrc-auto-import.json +++ b/playground/.eslintrc-auto-import.json @@ -60,4 +60,4 @@ "watchSyncEffect": true, "toValue": true } -} +} \ No newline at end of file diff --git a/playground/components.d.ts b/playground/components.d.ts index a25994168..1238860d7 100644 --- a/playground/components.d.ts +++ b/playground/components.d.ts @@ -3,9 +3,11 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 +import '@vue/runtime-core' + export {} -declare module 'vue' { +declare module '@vue/runtime-core' { export interface GlobalComponents { AnimatedModel: typeof import('./src/components/AnimatedModel.vue')['default'] Cameras: typeof import('./src/components/Cameras.vue')['default'] diff --git a/src/index.ts b/src/index.ts index 3e7064282..17b1ac055 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,8 @@ export * from './core/catalogue' export * from './components' export * from './types' +import { normalizeColor, normalizeVectorFlexibleParam } from './utils/normalize' + export interface TresOptions { extends?: Record } @@ -21,3 +23,5 @@ const plugin: TresPlugin = { } export default plugin + +export { normalizeColor, normalizeVectorFlexibleParam }