Skip to content

Commit 268c10b

Browse files
committed
Failing test for exactOptionalPropertyTypes
1 parent a4744fa commit 268c10b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

types/test.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,12 @@ export function wrappedRender(
132132
return <div>{children}</div>
133133
}
134134

135-
return pure.render(ui, {wrapper: Wrapper, ...options})
135+
return pure.render(ui, {
136+
wrapper: Wrapper,
137+
// testing exactOptionalPropertyTypes comaptibility
138+
hydrate: options?.hydrate,
139+
...options,
140+
})
136141
}
137142

138143
export function wrappedRenderB(

types/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "../node_modules/kcd-scripts/shared-tsconfig.json",
33
"compilerOptions": {
4+
"exactOptionalPropertyTypes": true,
45
"skipLibCheck": false
56
},
67
"include": ["."]

0 commit comments

Comments
 (0)