From b6a411db2a68e170d7c9467218b0cae582a0fffd Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:45:37 -1000 Subject: [PATCH] moving things inline with the dt generator script and downgrading typescript version to acceptable 2.4 --- types/react-relay/index.d.ts | 5 ++--- types/react-relay/tsconfig.json | 2 +- types/react-relay/tslint.json | 1 + types/relay-runtime/index.d.ts | 2 +- types/relay-runtime/tsconfig.json | 15 +++++++-------- types/relay-runtime/tslint.json | 1 + 6 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 types/react-relay/tslint.json create mode 100644 types/relay-runtime/tslint.json diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 072496d849..de3def9a00 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,9 +1,8 @@ // Type definitions for react-relay 1.3.0 // Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling -// Matt Martin +// Definitions by: Johannes Schickling , Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.5 +// TypeScript Version: 2.4 /// /// diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 5d225c2016..9cabc08c4a 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" diff --git a/types/react-relay/tslint.json b/types/react-relay/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-relay/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 09c456b980..5e86ed0681 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/facebook/relay // Definitions by: Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.5 +// TypeScript Version: 2.4 declare namespace __Relay.Common { /** diff --git a/types/relay-runtime/tsconfig.json b/types/relay-runtime/tsconfig.json index 8224ba918b..dd77fca0e4 100644 --- a/types/relay-runtime/tsconfig.json +++ b/types/relay-runtime/tsconfig.json @@ -1,8 +1,4 @@ { - "files": [ - "index.d.ts", - "relay-runtime-tests.tsx" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -13,14 +9,17 @@ "noImplicitThis": true, "strictNullChecks": true, "baseUrl": "../", - "jsx": "react", - "experimentalDecorators": true, - "forceConsistentCasingInFileNames": true, "typeRoots": [ "../" ], "types": [], "noEmit": true, + "jsx": "react", + "experimentalDecorators": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts", + "relay-runtime-tests.tsx" + ] } diff --git a/types/relay-runtime/tslint.json b/types/relay-runtime/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/relay-runtime/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }