The spec specifies a type property:
type
webRequest.ResourceType. The type of resource being requested: for example, "image", "script", "stylesheet".