mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge remote-tracking branch 'refs/remotes/DefinitelyTyped/types-2.0' into navigation-react-2.0.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import codeFrame from "babel-code-frame";
|
||||
import codeFrame = require("babel-code-frame");
|
||||
|
||||
const code = `
|
||||
const number = 1;
|
||||
|
||||
Vendored
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user