Merge remote-tracking branch 'refs/remotes/DefinitelyTyped/types-2.0' into navigation-react-2.0.0

This commit is contained in:
Graham Mendick
2016-12-11 16:16:18 +00:00
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import codeFrame from "babel-code-frame";
import codeFrame = require("babel-code-frame");
const code = `
const number = 1;
+4 -2
View File
@@ -1,4 +1,4 @@
// Type definitions for babel-code-frame 6.16
// Type definitions for babel-code-frame 6.20
// Project: https://github.com/babel/babel/tree/master/packages
// Definitions by: Mohsen Azimi <https://github.com/mohsen1>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -28,9 +28,11 @@ interface BabelCodeFrameOptions {
*
* @returns Framed code
*/
export default function babelCodeFrame(
declare function codeFrame(
rawLines: string,
lineNumber: number,
colNumber: number,
options?: BabelCodeFrameOptions
): string;
export = codeFrame;