File tree 2 files changed +13
-19
lines changed
2 files changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -11,25 +11,6 @@ import {
11
11
} from './componentProps'
12
12
import { warn } from './warning'
13
13
14
- /**
15
- * The following helpers are compiler macros that are only usable inside
16
- * `<script setup>`. They are essentially part of the `<script setup>` API and
17
- * will be frequently used. Although they can be explicitly imported, they can
18
- * actually be used directly inside `<script setup>` blocks. Their types are
19
- * therefore also made globally available to ensure proper type inference.
20
- */
21
- type _defineProps = typeof defineProps
22
- type _defineEmits = typeof defineEmits
23
- type _defineExpose = typeof defineExpose
24
- type _withDefaults = typeof withDefaults
25
-
26
- declare global {
27
- const defineProps : _defineProps
28
- const defineEmits : _defineEmits
29
- const defineExpose : _defineExpose
30
- const withDefaults : _withDefaults
31
- }
32
-
33
14
// dev only
34
15
const warnRuntimeUsage = ( method : string ) =>
35
16
warn (
Original file line number Diff line number Diff line change
1
+ // Note: this file is auto concatenated to the end of the bundled d.ts during
2
+ // build.
3
+ type _defineProps = typeof defineProps
4
+ type _defineEmits = typeof defineEmits
5
+ type _defineExpose = typeof defineExpose
6
+ type _withDefaults = typeof withDefaults
7
+
8
+ declare global {
9
+ const defineProps : _defineProps
10
+ const defineEmits : _defineEmits
11
+ const defineExpose : _defineExpose
12
+ const withDefaults : _withDefaults
13
+ }
You can’t perform that action at this time.
0 commit comments