mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
single declare module is needed to allow access from react-relay
This commit is contained in:
Vendored
+1
-1
@@ -26,7 +26,7 @@ declare namespace __Relay {
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
// note: refetch and pagination containers augment this
|
||||
export interface RelayProp {
|
||||
environment: Runtime.Environment;
|
||||
environment: __Relay.Runtime.Environment;
|
||||
}
|
||||
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Vendored
+11
-9
@@ -1123,12 +1123,14 @@ declare namespace __Relay {
|
||||
}
|
||||
}
|
||||
|
||||
export import Environment = __Relay.Runtime.Environment;
|
||||
export import Network = __Relay.Runtime.Network;
|
||||
export import RecordSource = __Relay.Runtime.RecordSource;
|
||||
export import Store = __Relay.Runtime.Store;
|
||||
export import Observable = __Relay.Runtime.RelayObservable;
|
||||
// note RecordSourceInspector is only available in dev environment
|
||||
export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector;
|
||||
export import ConnectionHandler = __Relay.Common.Handler;
|
||||
export import ViewerHandler = __Relay.Common.Handler;
|
||||
declare module 'relay-runtime' {
|
||||
export import Environment = __Relay.Runtime.Environment;
|
||||
export import Network = __Relay.Runtime.Network;
|
||||
export import RecordSource = __Relay.Runtime.RecordSource;
|
||||
export import Store = __Relay.Runtime.Store;
|
||||
export import Observable = __Relay.Runtime.RelayObservable;
|
||||
// note RecordSourceInspector is only available in dev environment
|
||||
export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector;
|
||||
export import ConnectionHandler = __Relay.Common.Handler;
|
||||
export import ViewerHandler = __Relay.Common.Handler;
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"no-single-declare-module": false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user