babel-code-frame: Update type annotation

The code allows omitting the column number, but the type annotation for that
parameter didn't.
This commit is contained in:
Simon Lydell 2016-03-23 17:13:07 +01:00
parent 4c371132ae
commit 6af4ba1937

View File

@ -84,7 +84,7 @@ function highlight(text: string) {
export default function (
rawLines: string,
lineNumber: number,
colNumber: number,
colNumber: ?number,
opts: Object = {},
): string {
colNumber = Math.max(colNumber, 0);