mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[relay-config] Initial import (#38561)
* [relay-config] Initial import * [relay-config] Configure tsc for linting * [relay-config] Use TS v3
This commit is contained in:
parent
41fe335d20
commit
e5187a3452
9
types/relay-config/index.d.ts
vendored
Normal file
9
types/relay-config/index.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
// Type definitions for relay-config 6.0
|
||||
// Project: https://facebook.github.io/relay/
|
||||
// Definitions by: Eloy Durán <https://github.com/DefinitelyTyped>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
import { Config } from 'relay-compiler/lib/bin/RelayCompilerMain';
|
||||
|
||||
export function loadConfig(): Config | undefined;
|
||||
6
types/relay-config/relay-config-tests.ts
Normal file
6
types/relay-config/relay-config-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { loadConfig } from 'relay-config';
|
||||
|
||||
const config = loadConfig();
|
||||
if (config) {
|
||||
config.language;
|
||||
}
|
||||
25
types/relay-config/tsconfig.json
Normal file
25
types/relay-config/tsconfig.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom",
|
||||
"esnext.asynciterable"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"relay-config-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/relay-config/tslint.json
Normal file
1
types/relay-config/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user