Type.RecordFields
The function returns a record that provides information about the fields of a specific record type. Each field in the returned record includes a name and a value, presented as a record in the format [...
The function returns a record that provides information about the fields of a specific record type. Each field in the returned record includes a name and a value, presented as a record in the format [ Type = type, Optional = logical ].
Search for the name and value of the record [ A = number, optional B = any] in Power Query. It returns the following output: [ A = [Type = number, optional = false], B = [Type = any, optional = true]]. This information is obtained by using the MType.RecordFields function with the specified type [A = number, optional B = any].