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

Commit

Permalink
chore: use TypeScript 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TimKolberger committed Apr 1, 2023
1 parent 2d943cd commit 9c73648
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 100 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"prettier": "2.8.7",
"tsup": "^6.3.0",
"turbo": "1.8.8",
"typescript": "4.9.5"
"typescript": "5.0.3"
},
"commitlint": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"clean-package": "2.2.0",
"jsdom": "21.1.1",
"preact": "10.13.2",
"typescript": "4.9.5",
"typescript": "5.0.3",
"vite": "4.2.1",
"vitest": "0.29.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/preact/src/forwardRef.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ComponentProps, Context, JSX } from 'preact'
import { ForwardFn, forwardRef as forwardRefPreact } from 'preact/compat'
import { type ForwardFn, forwardRef as forwardRefPreact } from 'preact/compat'

export type ElementType = JSX.ElementType

Expand Down
2 changes: 1 addition & 1 deletion packages/preact/src/polymorphic-factory.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ComponentWithAs, ElementType, forwardRef, type PropsOf } from './forwardRef'
import { type ComponentWithAs, type ElementType, forwardRef, type PropsOf } from './forwardRef'
import type { JSX } from 'preact'

type DOMElements = keyof JSX.IntrinsicElements
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"jsdom": "21.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.9.5",
"typescript": "5.0.3",
"vite": "4.2.1",
"vitest": "0.29.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react/test/polymorphic-factory.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react'
import { HTMLPolymorphicProps, polymorphicFactory } from '../src'
import { type HTMLPolymorphicProps, polymorphicFactory } from '../src'
import type { Properties } from 'csstype'
import { createRef } from 'react'

Expand Down
2 changes: 1 addition & 1 deletion packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"solid-js": "1.7.0",
"solid-testing-library": "0.5.1",
"tsup": "6.7.0",
"typescript": "4.9.5",
"typescript": "5.0.3",
"vite": "4.2.1",
"vite-plugin-solid": "2.6.1",
"vitest": "0.29.8"
Expand Down
8 changes: 7 additions & 1 deletion packages/solid/src/polymorphic-factory.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { ValidComponent, Component, JSX, ComponentProps, splitProps } from 'solid-js'
import {
type ValidComponent,
type Component,
type JSX,
type ComponentProps,
splitProps,
} from 'solid-js'
import { Dynamic } from 'solid-js/web'

type DOMElements = keyof JSX.IntrinsicElements
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"clean-package": "2.2.0",
"jsdom": "21.1.1",
"tsup": "6.7.0",
"typescript": "4.9.5",
"typescript": "5.0.3",
"vite": "4.2.1",
"vitest": "0.29.8",
"vue": "3.2.47"
Expand Down
Loading

0 comments on commit 9c73648

Please sign in to comment.