add type to file props