|
26 | 26 | // Kanitkorn Sujautra <https://github.com/lukyth>
|
27 | 27 | // Sebastian Silbermann <https://github.com/eps1lon>
|
28 | 28 |
|
29 |
| -import { VNode } from '@vue/runtime-core' |
30 | 29 | import * as CSS from 'csstype'
|
31 | 30 |
|
32 | 31 | export interface CSSProperties
|
@@ -1021,7 +1020,7 @@ export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
|
1021 | 1020 | zoomAndPan?: string
|
1022 | 1021 | }
|
1023 | 1022 |
|
1024 |
| -interface IntrinsicElementAttributes { |
| 1023 | +export interface IntrinsicElementAttributes { |
1025 | 1024 | a: AnchorHTMLAttributes
|
1026 | 1025 | abbr: HTMLAttributes
|
1027 | 1026 | address: HTMLAttributes
|
@@ -1320,43 +1319,3 @@ type EventHandlers<E> = {
|
1320 | 1319 | ? E[K]
|
1321 | 1320 | : (payload: E[K]) => void
|
1322 | 1321 | }
|
1323 |
| - |
1324 |
| -// use namespace import to avoid collision with generated types which use |
1325 |
| -// named imports. |
1326 |
| -import * as RuntimeCore from '@vue/runtime-core' |
1327 |
| - |
1328 |
| -type ReservedProps = { |
1329 |
| - key?: string | number | symbol |
1330 |
| - ref?: RuntimeCore.VNodeRef |
1331 |
| - ref_for?: boolean |
1332 |
| - ref_key?: string |
1333 |
| -} |
1334 |
| - |
1335 |
| -type ElementAttrs<T> = T & ReservedProps |
1336 |
| - |
1337 |
| -type NativeElements = { |
1338 |
| - [K in keyof IntrinsicElementAttributes]: ElementAttrs< |
1339 |
| - IntrinsicElementAttributes[K] |
1340 |
| - > |
1341 |
| -} |
1342 |
| - |
1343 |
| -declare global { |
1344 |
| - namespace JSX { |
1345 |
| - interface Element extends VNode {} |
1346 |
| - interface ElementClass { |
1347 |
| - $props: {} |
1348 |
| - } |
1349 |
| - interface ElementAttributesProperty { |
1350 |
| - $props: {} |
1351 |
| - } |
1352 |
| - interface IntrinsicElements extends NativeElements { |
1353 |
| - // allow arbitrary elements |
1354 |
| - // @ts-ignore suppress ts:2374 = Duplicate string index signature. |
1355 |
| - [name: string]: any |
1356 |
| - } |
1357 |
| - interface IntrinsicAttributes extends ReservedProps {} |
1358 |
| - } |
1359 |
| -} |
1360 |
| - |
1361 |
| -// suppress ts:2669 |
1362 |
| -export {} |
0 commit comments