Skip to content

Commit

Permalink
Add type test
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverJAsh committed Oct 6, 2022
1 parent b50f392 commit e7017ed
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/typetests/provider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* eslint-disable @typescript-eslint/no-unused-vars */

import React from 'react'
import { Provider } from '../../src'
import { Store } from 'redux'

declare const store: Store<{ foo: string }>

function App() {
return (
<Provider
store={store}
// @ts-expect-error
serverState={'oops'}
>
foo
</Provider>
)
}

0 comments on commit e7017ed

Please sign in to comment.