mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/>
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="./react-responsive.d.ts" />
|
||||
|
||||
import * as React from "react";
|
||||
import * as MediaQuery from "react-responsive";
|
||||
|
||||
|
||||
2
react-responsive/react-responsive.d.ts
vendored
2
react-responsive/react-responsive.d.ts
vendored
@@ -3,8 +3,6 @@
|
||||
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
|
||||
declare module "react-responsive" {
|
||||
import * as React from "react";
|
||||
|
||||
|
||||
21
react-responsive/tsconfig.json
Normal file
21
react-responsive/tsconfig.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"react-responsive.d.ts",
|
||||
"react-responsive-tests.tsx"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user