Skip to content

Commit

Permalink
chore: broken ts checks
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Jul 5, 2024
1 parent 722577b commit ea8e96b
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptGoogleAdsense.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<script setup lang="ts">
import { callOnce, onMounted, ref, useElementScriptTrigger, useScriptGoogleAdsense } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScriptGoogleAdsense } from '../registry/google-adsense'
import { callOnce, onMounted, ref } from '#imports'
import type { ElementScriptTrigger } from '#nuxt-scripts'
const props = withDefaults(defineProps<{
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptGoogleMaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import type { QueryObject } from 'ufo'
import { defu } from 'defu'
import type { ElementScriptTrigger } from '../types'
import { scriptRuntimeConfig } from '../utils'
import { resolveComponent, useElementScriptTrigger, useHead, useScriptGoogleMaps } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScriptGoogleMaps } from '../registry/google-maps'
import { resolveComponent, useHead } from '#imports'
interface PlaceholderOptions {
width?: string | number
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptLemonSqueezyButton.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts" setup>
import type { ElementScriptTrigger } from '../types'
import { onMounted, ref, useElementScriptTrigger, useScriptLemonSqueezy } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScriptLemonSqueezy } from '../registry/lemon-squeezy'
import { onMounted, ref } from '#imports'
const props = withDefaults(defineProps<{
trigger?: ElementScriptTrigger
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptStripePricingTable.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script setup lang="ts">
import { ref } from 'vue'
import type { ElementScriptTrigger } from '../types'
import { onBeforeUnmount, useElementScriptTrigger, useScript } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScript } from '../composables/useScript'
import { onBeforeUnmount } from '#imports'
const props = withDefaults(defineProps<{
trigger?: ElementScriptTrigger
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptVimeoPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
import type { HTMLAttributes, ImgHTMLAttributes } from 'vue'
import { defu } from 'defu'
import type { ElementScriptTrigger } from '../types'
import { useAsyncData, useElementScriptTrigger, useHead, useScriptVimeoPlayer } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScriptVimeoPlayer } from '../registry/vimeo-player'
import { useAsyncData, useHead } from '#imports'
const props = withDefaults(defineProps<{
// custom
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/components/ScriptYouTubePlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { computed, onMounted, ref, watch } from 'vue'
import type { HTMLAttributes, ImgHTMLAttributes, Ref } from 'vue'
import { defu } from 'defu'
import type { ElementScriptTrigger } from '../types'
import { useElementScriptTrigger, useHead, useScriptYouTubePlayer } from '#imports'
import { useElementScriptTrigger } from '../composables/useElementScriptTrigger'
import { useScriptYouTubePlayer } from '../registry/youtube-player'
import { useHead } from '#imports'
const props = withDefaults(defineProps<{
placeholderAttrs?: ImgHTMLAttributes
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defu } from 'defu'
import type { GenericSchema, InferInput, ObjectSchema, ValiError } from 'valibot'
import type { UseScriptInput, VueScriptInstance } from '@unhead/vue'
import { useScript } from './composables/useScript'
import { parse } from '#nuxt-scripts-validator'
import { useRuntimeConfig, useScript } from '#imports'
import { useRuntimeConfig } from '#imports'
import type {
EmptyOptionsSchema,
NuxtUseScriptOptions,
Expand Down

0 comments on commit ea8e96b

Please sign in to comment.