74 items
Narrowing a Discriminated Union
Code QuizNarrowing a Discriminated Union
QuizTypeScript Type System Building Blocks
Slides / VideoInterfaces, Unions, Generics & Narrowing
FlashcardType Alias vs Interface Merging
Code QuizInterface vs Type Alias Capabilities
QuizInterfaces vs Type Aliases
Slides / VideoInterface vs Type Alias
FlashcardTypeScript Type System Essentials
Slides / VideoType System Essentials Overview
FlashcardCallable and Constructable Interfaces
Slides / VideoImplementing Interfaces in Classes
Slides / VideoType Aliases Beyond Objects
Slides / VideoInterface vs Type Alias
Slides / VideoDeclaration Merging of Interfaces
Slides / VideoUnion Types via Type Aliases
Slides / VideoIntersection Types with Type Aliases
Slides / VideoExtending Interfaces with extends
Slides / VideoIndex Signatures for Dynamic Keys
Slides / VideoFunction Types with Interfaces and Aliases
Slides / VideoReadonly Properties in Types
Slides / VideoOptional Properties in Types
Slides / VideoType Aliases with the type Keyword
Slides / VideoDeclaring Interfaces for Object Shapes
Slides / VideoReadonly Properties
QuizInterface vs Type Alias
QuizExcess Property Checks
QuizOptional Properties
QuizDeclaration Merging of Interfaces
QuizType Alias Intersections
QuizFunction Types
QuizDeclaring an Interface
QuizCall and Construct Signatures
QuizIndex Signatures
QuizImplementing Interfaces in Classes
QuizNested Object Types
QuizExtending Multiple Interfaces
QuizExtending Interfaces
QuizCombining Aliases Wrong
Code QuizRecursive Structure Type
Code QuizFunction Type Alias Syntax
Code QuizLiteral Union Alias Case
Code QuizType Alias Cannot Merge
Code QuizExcess Property Check
Code QuizExtends vs Intersection
Code QuizClass Implementing Interface
Code QuizIndex Signatures
Code QuizExtending an Interface
Code QuizFunction Type Interface
Code QuizInterface Declaration Merging
Code QuizObject Shape Type Alias
Code QuizUnion Type Alias
Code QuizDeclaring an Interface
Code QuizConstruct Signatures
Code QuizMethod Signatures
FlashcardFunction Type Signatures
FlashcardIndex Signatures
FlashcardType Alias for Object Shapes
FlashcardType Alias for Primitives and Literals
FlashcardType Alias for Tuples
FlashcardIntersection Types
FlashcardExtending Interfaces
FlashcardInterface Declaration Merging
FlashcardInterface Declaration Syntax
FlashcardWhen to Use Interface vs Type
FlashcardCall Signatures
FlashcardClasses Implementing Interfaces
FlashcardExcess Property Checks
FlashcardInterfaces Extending Classes
FlashcardInterface vs Type Alias
FlashcardConstruct Signatures
FlashcardExtending Multiple Interfaces
FlashcardNested and Composed Interfaces
FlashcardType Alias for Function Types
FlashcardInterface Declaration Merging
Understand why two same-named interfaces fail to merge here.
interface Box {
size: number;
}
interface Box {
size: string;
}
const b: Box = { size: 10 };What is the bug in this code?