Browse Source

chore: lint issues with isFunction util

alvarosabu 2 năm trước cách đây
mục cha
commit
4ae072d4ad

+ 1 - 1
playground/src/components/TheExperience.vue

@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import { reactive, ref, watchEffect, provide } from 'vue'
+import { ref, watchEffect } from 'vue'
 import { BasicShadowMap, sRGBEncoding, NoToneMapping } from 'three'
 import { TresCanvas } from '/@/'
 import TheSphere from './TheSphere.vue'

+ 1 - 1
playground/src/components/gltf/index.vue

@@ -13,7 +13,7 @@ const state = reactive({
   toneMapping: NoToneMapping,
 })
 
-const akuAkuRef = ref(null)
+/* const akuAkuRef = ref(null) */
 
 const context = ref()
 watchEffect(() => {

+ 0 - 2
src/utils/index.ts

@@ -26,8 +26,6 @@ const HTML_TAGS =
 
 export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
 
-export const isFunction = (val: unknown): val is Function => typeof val === 'function'
-
 export function kebabToCamel(str: string) {
   return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase())
 }