Skip to content

Commit e7017ed

Browse files
committed
Add type test
1 parent b50f392 commit e7017ed

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/typetests/provider.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
2+
3+
import React from 'react'
4+
import { Provider } from '../../src'
5+
import { Store } from 'redux'
6+
7+
declare const store: Store<{ foo: string }>
8+
9+
function App() {
10+
return (
11+
<Provider
12+
store={store}
13+
// @ts-expect-error
14+
serverState={'oops'}
15+
>
16+
foo
17+
</Provider>
18+
)
19+
}

0 commit comments

Comments
 (0)