Skip to content

SyncJS types

JavaScript was originally designed to avoid requiring type declarations for variables at design time.

However, many developers appreciate the benefits of types (that's actually what lead to the borth of TypeScript, by the way). Over time, JavaScript has evolved to support a hybrid typing strategy: primitive variables are type-less, while objects can have specific, well-defined types.

SyncJS leverages this flexibility. Some functions accept untyped parameters, but SyncJS objects provide clear, strongly-typed interfaces. This section documents the specific types and interfaces available in SyncJS.