Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 9c73648

Browse files
committed
chore: use TypeScript 5.0
1 parent 2d943cd commit 9c73648

11 files changed

+104
-100
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prettier": "2.8.7",
3737
"tsup": "^6.3.0",
3838
"turbo": "1.8.8",
39-
"typescript": "4.9.5"
39+
"typescript": "5.0.3"
4040
},
4141
"commitlint": {
4242
"extends": [

packages/preact/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"clean-package": "2.2.0",
5353
"jsdom": "21.1.1",
5454
"preact": "10.13.2",
55-
"typescript": "4.9.5",
55+
"typescript": "5.0.3",
5656
"vite": "4.2.1",
5757
"vitest": "0.29.8"
5858
},

packages/preact/src/forwardRef.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComponentProps, Context, JSX } from 'preact'
2-
import { ForwardFn, forwardRef as forwardRefPreact } from 'preact/compat'
2+
import { type ForwardFn, forwardRef as forwardRefPreact } from 'preact/compat'
33

44
export type ElementType = JSX.ElementType
55

packages/preact/src/polymorphic-factory.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type ComponentWithAs, ElementType, forwardRef, type PropsOf } from './forwardRef'
1+
import { type ComponentWithAs, type ElementType, forwardRef, type PropsOf } from './forwardRef'
22
import type { JSX } from 'preact'
33

44
type DOMElements = keyof JSX.IntrinsicElements

packages/react/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"jsdom": "21.1.1",
5656
"react": "18.2.0",
5757
"react-dom": "18.2.0",
58-
"typescript": "4.9.5",
58+
"typescript": "5.0.3",
5959
"vite": "4.2.1",
6060
"vitest": "0.29.8"
6161
},

packages/react/test/polymorphic-factory.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { render, screen } from '@testing-library/react'
2-
import { HTMLPolymorphicProps, polymorphicFactory } from '../src'
2+
import { type HTMLPolymorphicProps, polymorphicFactory } from '../src'
33
import type { Properties } from 'csstype'
44
import { createRef } from 'react'
55

packages/solid/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"solid-js": "1.7.0",
5656
"solid-testing-library": "0.5.1",
5757
"tsup": "6.7.0",
58-
"typescript": "4.9.5",
58+
"typescript": "5.0.3",
5959
"vite": "4.2.1",
6060
"vite-plugin-solid": "2.6.1",
6161
"vitest": "0.29.8"

packages/solid/src/polymorphic-factory.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
import { ValidComponent, Component, JSX, ComponentProps, splitProps } from 'solid-js'
1+
import {
2+
type ValidComponent,
3+
type Component,
4+
type JSX,
5+
type ComponentProps,
6+
splitProps,
7+
} from 'solid-js'
28
import { Dynamic } from 'solid-js/web'
39

410
type DOMElements = keyof JSX.IntrinsicElements

packages/vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"clean-package": "2.2.0",
4242
"jsdom": "21.1.1",
4343
"tsup": "6.7.0",
44-
"typescript": "4.9.5",
44+
"typescript": "5.0.3",
4545
"vite": "4.2.1",
4646
"vitest": "0.29.8",
4747
"vue": "3.2.47"

0 commit comments

Comments
 (0)