In TypeScript, it is possible for a type declaration to allow for dynamic object properties?
class Animal {
name: string;
[everything else]: any;
}
let animal = <Animal>{ name: "Kitty", type: "cat" };
animal.name; // Would be treated as string
animal.type; // Would allow compilation and be treated as any
I would like these extra properties to be allowed dynamically, without having to add them to the type declaration. Using TypeScript 1.8.2.