diff --git a/package-lock.json b/package-lock.json index b62b130dd..2e9b5e897 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,7 +79,7 @@ "swc-loader": "^0.2.6", "swc-plugin-inferno": "^2.0.0", "ts-plugin-inferno": "^6.1.0", - "typescript": "^5.6.3" + "typescript": "^5.7.2" } }, "node_modules/@ampproject/remapping": { diff --git a/packages/inferno-create-element/__tests__/createElement.spec.ts b/packages/inferno-create-element/__tests__/createElement.spec.ts index 3bc7bc4bc..f078a095a 100644 --- a/packages/inferno-create-element/__tests__/createElement.spec.ts +++ b/packages/inferno-create-element/__tests__/createElement.spec.ts @@ -1,6 +1,5 @@ -import {Component, createRef, forwardRef, Fragment, Inferno, type RefObject, render} from 'inferno'; +import { Component, createRef, forwardRef, Fragment, type Inferno, type RefObject, render } from 'inferno'; import { createElement } from 'inferno-create-element'; -import SFC = Inferno.SFC; describe('CreateElement (non-JSX)', () => { let container; @@ -150,10 +149,11 @@ describe('CreateElement (non-JSX)', () => { let myRef: any = 'myRef'; const app = () => { - const node: SFC = () => + const node: Inferno.StatelessComponent = () => createElement('a', { ref: (c) => (myRef = c), }); + return createElement(node, { onComponentDidMount() { expect(myRef.tagName).toBe('A');