UNPKG
typedux
Version:
latest (3.0.23)
3.0.23
3.0.22
3.0.21
3.0.20
3.0.19
3.0.18
3.0.17
3.0.16
3.0.15
3.0.14
3.0.13
3.0.12
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
2.0.35
2.0.34
2.0.33
2.0.31
2.0.30
2.0.29
2.0.28
2.0.26
2.0.23
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.5
2.0.4
2.0.3
2.0.2
2.0.0
0.1.20
0.1.18
0.1.17
0.1.16
0.1.15
0.1.13
0.1.12
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.1
0.1.0
Slightly adjusted Redux (awesome by default) for TS
github.com/densebrain/typedux
densebrain/typedux
typedux
/
src
/
util
/
Flag.ts
20 lines
(12 loc)
•
223 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export
class
Flag
<
D = any
> {
private
state = {isSet:
false
}
set
() {
this
.state.isSet =
true
return
this
}
get
isSet() {
return
this
.state.isSet }
constructor
(
public
data
?:D) { } }