Rezi
Preparing search index...
core/src
flattenHunks
Function flattenHunks
flattenHunks
(
hunks
:
readonly
Readonly
<
{
header
?:
string
;
lines
:
readonly
Readonly
<
{
content
:
string
;
highlights
?:
readonly
(
readonly
[
number
,
number
]
)
[]
;
newLineNumber
?:
number
;
oldLineNumber
?:
number
;
type
:
"context"
|
"add"
|
"delete"
;
}
,
>
[]
;
newCount
:
number
;
newStart
:
number
;
oldCount
:
number
;
oldStart
:
number
;
}
,
>
[]
,
)
:
readonly
Readonly
<
{
hunkIndex
:
number
;
line
:
DiffLine
;
lineIndex
:
number
;
newLineNum
:
number
|
null
;
oldLineNum
:
number
|
null
;
}
,
>
[]
Parameters
hunks
:
readonly
Readonly
<
{
header
?:
string
;
lines
:
readonly
Readonly
<
{
content
:
string
;
highlights
?:
readonly
(
readonly
[
number
,
number
]
)
[]
;
newLineNumber
?:
number
;
oldLineNumber
?:
number
;
type
:
"context"
|
"add"
|
"delete"
;
}
,
>
[]
;
newCount
:
number
;
newStart
:
number
;
oldCount
:
number
;
oldStart
:
number
;
}
,
>
[]
Returns
readonly
Readonly
<
{
hunkIndex
:
number
;
line
:
DiffLine
;
lineIndex
:
number
;
newLineNum
:
number
|
null
;
oldLineNum
:
number
|
null
;
}
,
>
[]
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Rezi
Loading...