Suppose I find that I am declaring many things as Foo|Bar|Baz , and I get tired of writing this. How can I declare type Foob = Foo|Bar|Baz so that I can use Foob ?
Foo|Bar|Baz
declare type Foob = Foo|Bar|Baz
Foob
Just the way you typed.
type Foo = {}; type Bar = {}; type Ba = {}; declare type Foob = Foo|Bar|Ba; let x:Foob;
Source: https://habr.com/ru/post/1247098/More articles:Too many classes in -main-dex-list - androidLimit Condorβs job scheduling: one per physical machine - networkingSpring Security for REST and Angular 2.0 - restclass does not work on page - jqueryXcode 7 - Swift - Automatic site loading via SFSafariViewController - iosHow can I install PyQT4 for Python 2.7? - pythonJVM freezes after switching to jdk1.8.0_74 - javaLimiting the number of concurrent processes scheduled by condor - condorWebStorm limits the refactoring scope to the current file only - scopeGet deadlock detection from a running program or dump in Java - javaAll Articles