hasFieldOfType<T>(obj, fieldName, fieldType): obj is { [fieldName: string]: T; }
Checks that obj is an object, and it has a field named fieldName and that its type is fieldType
Assuming e is an object with the field code of type string.
If you use this, then the expression following it is valid, for example:
Checks that obj is an object, and it has a field named fieldName and that its type is fieldType
Assuming e is an object with the field code of type string.