diff options
Diffstat (limited to 'std/types')
-rw-r--r-- | std/types/react-dom.d.ts | 2 | ||||
-rw-r--r-- | std/types/react.d.ts | 4 | ||||
-rw-r--r-- | std/types/tests/react-dom_mock.js | 2 | ||||
-rw-r--r-- | std/types/tests/react_mock.js | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/std/types/react-dom.d.ts b/std/types/react-dom.d.ts index f135197f2..3be59411f 100644 --- a/std/types/react-dom.d.ts +++ b/std/types/react-dom.d.ts @@ -30,7 +30,7 @@ import { DOMAttributes, DOMElement, ReactNode, - ReactPortal + ReactPortal, } from "./react.d.ts"; export function findDOMNode( diff --git a/std/types/react.d.ts b/std/types/react.d.ts index b512a43a2..725503b13 100644 --- a/std/types/react.d.ts +++ b/std/types/react.d.ts @@ -3231,9 +3231,7 @@ declare namespace React { // naked 'any' type in a conditional type will short circuit and union both the then/else branches // so boolean is only resolved for T = any -type IsExactlyAny<T> = boolean extends (T extends never -? true -: false) +type IsExactlyAny<T> = boolean extends (T extends never ? true : false) ? true : false; diff --git a/std/types/tests/react-dom_mock.js b/std/types/tests/react-dom_mock.js index 68b4137ba..cbc20958b 100644 --- a/std/types/tests/react-dom_mock.js +++ b/std/types/tests/react-dom_mock.js @@ -3,7 +3,7 @@ const ReactDOM = { render(element) { return JSON.stringify(element); - } + }, }; export default ReactDOM; diff --git a/std/types/tests/react_mock.js b/std/types/tests/react_mock.js index 93faa6c9b..3dec4f422 100644 --- a/std/types/tests/react_mock.js +++ b/std/types/tests/react_mock.js @@ -3,7 +3,7 @@ const React = { createElement(type, props, ...children) { return JSON.stringify({ type, props, children }); - } + }, }; export default React; |