pub fn new(ty: Reference, properties: Reference) -> Reference