TypeScript Quiz_type aliases, union type, intersection type, enum

type Info = {
name: string,
age: number
}
type Person = Info & {
address: string
}
interface Info {
name: string,
age: number
}
type Address = {
address: string
}
type Person = Info & Address;
type Info = {
name: string,
age: number
}
type Address = {
address: string
}
type Person = Info & Address;
interface Info {
name: string,
age: number
}
interface Address {
address: string
}
interface Person = Info & Address;
interface Info {
name: string,
age: number
}
interface Address {
address: string
}
type Person = Info & Address;
type Person = {
name: string,
age: number
}
type Person = {
address: string
}
type Info {
name: string,
age: number
}
type Person extends Info {
address: string
}
enum BooleanLikeHeterogeneousEnum {
No = 0,
Yes = "YES",
}
enum Platform {   
Admob,
Applovin,
AdColony,
IronSource,
Inmobi,
Kidoz,
UnityAds,
Vungle
}
type AdsPlatform = keyof typeof Platform;

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store