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:
Matt Martin
2016-11-07 22:31:44 +09:00
committed by Masahiro Wakame
parent 678f191c72
commit af3261e419
+1 -1
View File
@@ -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 {