single declare module is needed to allow access from react-relay

This commit is contained in:
voxmatt
2017-09-10 17:18:52 -10:00
parent ec92bbda49
commit 38dd00d25e
3 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ declare namespace __Relay {
// ~~~~~~~~~~~~~~~~~~~~~
// note: refetch and pagination containers augment this
export interface RelayProp {
environment: Runtime.Environment;
environment: __Relay.Runtime.Environment;
}
// ~~~~~~~~~~~~~~~~~~~~~
+11 -9
View File
@@ -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;
}
+4 -1
View File
@@ -1 +1,4 @@
{ "extends": "dtslint/dt.json" }
{
"extends": "dtslint/dt.json",
"no-single-declare-module": false
}