Skip to content

Commit

Permalink
feat: export utility functions (#315)
Browse files Browse the repository at this point in the history
* feat: exported normalizeColor

* chore: added normalizeVectorFlexibleParam to the module exports

---------

Co-authored-by: Tino Koch <[email protected]>
  • Loading branch information
Tinoooo and Tinoooo committed Jun 22, 2023
1 parent f289317 commit 7580c77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playground/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
"watchSyncEffect": true,
"toValue": true
}
}
}
4 changes: 3 additions & 1 deletion playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, unknown>
}
Expand All @@ -21,3 +23,5 @@ const plugin: TresPlugin = {
}

export default plugin

export { normalizeColor, normalizeVectorFlexibleParam }

0 comments on commit 7580c77

Please sign in to comment.