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 (
|
export default function (
|
||||||
rawLines: string,
|
rawLines: string,
|
||||||
lineNumber: number,
|
lineNumber: number,
|
||||||
colNumber: number,
|
colNumber: ?number,
|
||||||
opts: Object = {},
|
opts: Object = {},
|
||||||
): string {
|
): string {
|
||||||
colNumber = Math.max(colNumber, 0);
|
colNumber = Math.max(colNumber, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user