Skip to content

Commit

Permalink
fix: type for useloader component props
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Sep 30, 2024
1 parent b4a3866 commit a4bd590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/composables/useLoader/component.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script setup lang="ts">
import type { Loader } from 'three'
import type { LoaderProto } from './index'
import { reactive } from 'vue'
import { useLoader } from './index'
const props = defineProps<{
loader: Loader
loader: LoaderProto<unknown>
url: string | string[]
}>()
Expand Down
9 changes: 5 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import dts from 'vite-plugin-dts'

import Inspect from 'vite-plugin-inspect'

/* import analyze from 'rollup-plugin-analyzer'
*/ /* import { visualizer } from 'rollup-plugin-visualizer' */
import { bold, gray, lightGreen, yellow } from 'kolorist'
/* import analyze from 'rollup-plugin-analyzer' */

import { bold, gray, lightGreen, yellow } from 'kolorist'
import { resolve } from 'pathe'

/* ß */

import pkg from './package.json'

// eslint-disable-next-line no-console
Expand Down Expand Up @@ -64,7 +65,7 @@ export default defineConfig({
targets: [{ src: 'src/types/tres-components.d.ts', dest: 'dist/types' }],
}),
/* analyze(), */
/* visualizer({
/* visualizer({
open: true,
gzipSize: true,
brotliSize: true,
Expand Down

0 comments on commit a4bd590

Please sign in to comment.