Suppose there's type or interface named NumberLookupCriteria:
type NumberLookupCriteria = {
dialCode: string;
phoneNumber: string;
}
or
interface NumberLookupCriteria {
dialCode: string;
phoneNumber: string;
}
Can we somehow manage to get all the keys as an JS array of strings like this:
const keys = ['dialCode','phoneNumber']
Any idea?