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:
parent
4c371132ae
commit
6af4ba1937
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user