Export getType, support emitting on paths that don't exist.