@falcondev-oss/nuxt-layers-base 0.40.0 → 0.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script setup lang="ts" generic="const O extends RadioGroupItem[], R extends ConfirmModalResult<O>">
|
|
2
2
|
import type { ButtonProps, RadioGroupItem, RadioGroupProps } from '@nuxt/ui'
|
|
3
3
|
import type { ComponentPublicInstance } from 'vue'
|
|
4
|
-
import type { ConfirmModalResult } from '
|
|
5
|
-
import type { templateParts } from '
|
|
4
|
+
import type { ConfirmModalResult } from '../../composables/confirm'
|
|
5
|
+
import type { templateParts } from '../../utils/display'
|
|
6
6
|
|
|
7
7
|
export type ConfirmModalProps<O extends RadioGroupItem[]> = {
|
|
8
8
|
title: string
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RadioGroupItem } from '@nuxt/ui'
|
|
2
|
-
import type { ConfirmModalProps } from '
|
|
2
|
+
import type { ConfirmModalProps } from '../components/modals/ConfirmModal.vue'
|
|
3
3
|
import { LazyConfirmModal } from '#components'
|
|
4
4
|
|
|
5
5
|
export type ConfirmModalSuccess<O extends RadioGroupItem[]> = 0 extends O['length']
|
package/nuxt.config.ts
CHANGED
|
@@ -7,6 +7,14 @@ export default defineNuxtConfig({
|
|
|
7
7
|
compatibilityDate: '2025-07-15',
|
|
8
8
|
devtools: { enabled: true },
|
|
9
9
|
|
|
10
|
+
hooks: {
|
|
11
|
+
// consumers only pick up `app/**/*` through an `include` glob that their own
|
|
12
|
+
// tsconfig may exclude, so reference the layer's global augmentations explicitly
|
|
13
|
+
'prepare:types': ({ references }) => {
|
|
14
|
+
references.push({ path: path.join(currentDir, './app/index.d.ts') })
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
|
|
10
18
|
// dev
|
|
11
19
|
typescript: {
|
|
12
20
|
strict: true,
|