Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 729 Bytes

jargon.md

File metadata and controls

55 lines (33 loc) · 729 Bytes

Common Terms

Structural Typing

Subtype

In structural typing, a type which matches another type, but contains extra properties, is considered a subtype. In TypeScript Example:

const;

Excess Property Checking

The

Freshness

Inference

Invariant

Type Parameter

Code which can be checked at runtime.

Type safe function:

const;

Type Safe

Obscure Terms

Covariant/Contravariant

Really Obscure Terms

Homomorphic

Naked Type Parameter

A type parameter (see above) which is not wrapped in something like an array.

Example:

// T here is any element in the array
// T[] is the array itself
const filter = <T>(array: T[], func: (T): boolean): T[] => {}