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:
Andy Hanson
2016-09-14 12:12:01 -07:00
parent 84a760de85
commit 28ef3d201b
474 changed files with 5552 additions and 3078 deletions

View File

@@ -1,6 +1,3 @@
/// <reference path="react-imageloader.d.ts" />
/// <reference path="../react/react.d.ts" />
import ImageLoader = require('react-imageloader');
import * as React from 'react';

View File

@@ -3,10 +3,10 @@
// Definitions by: Stephen Jelfs <https://github.com/stephenjelfs>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
/// <reference types="react" />
declare module "react-imageloader" {
interface ImageLoaderProps extends __React.Props<ImageLoader> {
interface ImageLoaderProps extends React.Props<ImageLoader> {
/** An optional class name for the wrapper component. */
className?: string;
@@ -20,19 +20,19 @@ declare module "react-imageloader" {
onLoad?: (event: any) => void;
/** An optional function that returns a React element to be shown while the image loads. */
preloader?: (params: any) => __React.ReactElement<any>;
preloader?: (params: any) => React.ReactElement<any>;
/** The URL of the image to be loaded. */
src: string;
/** An optional object containing styles for the wrapper component. */
style?: __React.CSSProperties;
style?: React.CSSProperties;
/** A function that takes a props argument and returns a React element to be used as the wrapper component. Defaults to React.DOM.span. */
wrapper?: (props: any) => __React.ReactElement<any>;
wrapper?: (props: any) => React.ReactElement<any>;
}
class ImageLoader extends __React.Component<ImageLoaderProps, {}> {}
class ImageLoader extends React.Component<ImageLoaderProps, {}> {}
export = ImageLoader;
}

View 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-imageloader.d.ts",
"react-imageloader-tests.tsx"
]
}