I need to get the properties of an interface to make sure that they match an object that implements it. For unit testing purposes.
So if changes are made to the interface the unit test should break if it isn't updated with the new members.
I've tried using the ts-transformer-keys package but it throws an error about not being a function.
interface Test {
mem1: boolean,
mem2: string
}
I would like to do something like this:
console.log(Object.keys(Test))
and expect
['mem1', 'mem2'];