Remove react-dnd/react-dnd-html5-backend.d.ts and just use react-dnd-html5-backend/index.d.ts

This commit is contained in:
Andy Hanson
2016-11-21 12:50:25 -08:00
parent 8841dfc744
commit ef28c2d81b
4 changed files with 10 additions and 23 deletions

View File

@@ -1,13 +1,14 @@
// Type definitions for React DnD Html5 Backend v2.1.2
// Type definitions for React DnD Html5 Backend 2.1
// Project: https://github.com/gaearon/react-dnd
// Definitions by: Pedro Pereira <https://github.com/oizie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types='react' />
///<reference types='react-dnd' />
import * as ReactDnd from "react-dnd";
declare module "react-dnd-html5-backend" {
export enum NativeTypes { FILE, URL, TEXT }
export function getEmptyImage(): any; // Image
export default class HTML5Backend implements __ReactDnd.Backend {}
}
export namespace NativeTypes {
const FILE: string;
const URL: string;
const TEXT: string;
}
export function getEmptyImage(): any; // Image
export default class HTML5Backend implements ReactDnd.Backend {}

View File

@@ -0,0 +1 @@
{ "extends": "../tslint.json" }

View File

@@ -1,14 +0,0 @@
// Type definitions for React DnD HTML 5 Backend v2.0.0
// Project: https://github.com/gaearon/react-dnd
// Definitions by: Asana <https://asana.com>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "react-dnd-html5-backend" {
export namespace NativeTypes {
export const FILE: string;
export const URL: string;
export const TEXT: string;
}
export function getEmptyImage(): any; // Image
export default class HTML5Backend implements __ReactDnd.Backend { }
}

View File

@@ -1,4 +1,3 @@
///<reference path="react-dnd-html5-backend.d.ts" />
///<reference path="react-dnd-test-backend.d.ts" />
"use strict";