UNPKG
fybdp-d3-kg
Version:
latest (1.0.1)
1.0.1
1.0.0
Knowledge Graph using React and D3.js
gitlab.fybdp.com/fuxi/d3-kg/blob/master/README.md
fybdp-d3-kg
/
dist
/
src
/
common
/
types.d.ts
12 lines
(11 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * branch between showing something and providing a spec, * or not showing it */
export
declare
type
Visible
<T> = ({
show
:
true
; }) & T;
export
declare
type
Invisible
<T> = ({
show
:
false
; }) &
Partial
<T>;
export
declare
type
Shown
<T> =
Visible
<T> |
Invisible
<T>;