Generic Classes A generic class has a similar shape to a generic interface. Generic classes have a generic type parameter list in angle brackets
Details The "compilerOptions" property can be omitted, in which case the compiler’s defaults are used. See our full list of supported
Publish to @types Packages on under the
Objects with Properties Documentation The global variable myLib has a function
Type parameters as constraints With TypeScript 1.8 it becomes possible for a type parameter constraint to reference type parameters from the
Type assertions Sometimes you’ll end up in a situation where you’ll know more about a value than TypeScript does. Usually this will happen when
Searching For the most part, type declaration packages should always have the same name as the package name on npm, but prefixed
Namespaced Validators namespace Validation { export interface StringValidator { isAcceptable(s:
// Type definitions for [~THE LIBRARY NAME~] [~OPTIONAL VERSION NUMBER~] // Project: [~THE PROJECT NAME~] // Definitions by: [~YOUR
Enums Enums are compatible with numbers, and numbers are compatible with enums. Enum values from different enum types are considered incompatible
Page 6 of 29