UNPKG
cra-template-pi
Version:
latest (2.16.0)
2.16.0
2.15.3
2.15.2
2.15.1
2.15.0
2.14.1
2.14.0
2.13.1
2.13.0
2.12.0
2.11.1
2.11.0
2.10.0
2.9.0
2.8.1
2.8.0
2.7.0
2.6.1
2.6.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.1
2.1.0
2.0.1
2.0.0
1.13.0
1.12.0
1.11.3
1.11.2
1.11.1
1.11.0
1.10.0
1.9.0
1.8.1
1.8.0
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A quick start Create React App with many auto implemented features
cra-template-pi
/
template
/
src
/
interfaces
/
index.ts
9 lines
(8 loc)
•
245 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
/
*
*
*
Returns
all
values of
any
key
(
nested or not
)
with an optional filter
*
/
export type RecursiveAllValues
<
T
,
Filter
=
unknown
>
=
T
extends object
?
{
[
P
in
keyof
T
]
-
?
:
RecursiveAllValues
<
T
[
P
]
,
Filter
>
}
[
keyof
T
]
:
T
&
Filter