UNPKG
@myklt/splitter
Version:
latest (1.0.0)
1.0.0
Create resizable split views - like in VS Code
github.com/DevbookHQ/splitter
DevbookHQ/splitter
@myklt/splitter
/
lib
/
cjs
/
state
/
reducer.d.ts
10 lines
(9 loc)
•
270 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{
Action
}
from
'./reducer.actions'
;
import
Pair
from
'../pair'
;
export
interface
State
{
isReady
:
boolean
;
isDragging
:
boolean
;
draggingIdx
?:
number
;
pairs
:
Pair
[]; }
export
default
function
reducer
(
state
:
State
,
action
:
Action
):
State
;