UNPKG
sql-formatter-ast2
Version:
latest (15.6.5)
15.6.5
Format whitespace in a SQL query to make it more readable
sql-formatter-ast2
/
dist
/
cjs
/
lexer
/
lineColFromIndex.d.ts
9 lines
(8 loc)
•
234 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Determines line and column number of character index in source code. */
export
declare
function
lineColFromIndex
(
source
:
string
,
index
:
number
):
LineCol
;
export
interface
LineCol
{
line
:
number
;
col
:
number
; }