Typescript recipes
Add any properties to an interface
Dynamic property name
interface Post {
title: string;
visible: boolean;
// Allows any type
[key: string]: any;
}interface Post {
title: string;
visible: boolean;
}Extend interface
Override interface
Ask typescript to ignore an error
Object vs object vs {}
Last updated