ES6 Examples

typescript
// Any type
		let notSure: any = {}
		// notSure is of type 'any' so it can be assigned and reassigned any value
typescript
// Void type
		function warnUser(message: any): void {
		alert(message);
		}
		// void is used on functions that return nothing
typescript
// Null and Undefined
		let u: undefined = undefined; // undefined is a JavaScript primitive value, 
		// and TypeScript has a type named undefine that corresponds to the JavaScript value

		let n: null = null; // null is a JavaScript primitive value,
		// and TypeScript has a type named null that corresponds to the JavaScript value
typescript
// Never type
			function error(message: string): never {
				throw new Error(message);
			}
			// never is a data type that represents the type of values that never occur
			// an example of this is a function that returns never is a function that 
			// always throws an error or one that never returns