mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 12:11:47 +00:00
update getFragment declaration (#12255)
The documentation is pretty bad, but Relay's getFragment method allows for an optional second argument for passing initial variables to the fragment. This simply adds that.
This commit is contained in:
committed by
Masahiro Wakame
parent
678f191c72
commit
af3261e419
Vendored
+1
-1
@@ -23,7 +23,7 @@ declare module "react-relay" {
|
||||
|
||||
/** add static getFragment method to the component constructor */
|
||||
interface RelayContainerClass<T> extends React.ComponentClass<T> {
|
||||
getFragment: ((q: string) => string)
|
||||
getFragment: ((q: string, v?: RelayVariables) => string)
|
||||
}
|
||||
|
||||
interface RelayQueryRequestResolve {
|
||||
|
||||
Reference in New Issue
Block a user