Value.ReplaceType
Replaces the value's type.
Syntax
Value.ReplaceType(
value as any,
type as type
) as any
Remarks
Replaces the value
's type with the provided type
.
Examples
Example #1
Replace the default type of a record with a more specific type.
Type.RecordFields(
Value.Type(
Value.ReplaceType(
[Column1 = 123],
type [Column1 = number]
)
)
)[Column1][Type]
Result:
type number
Category
Values.Types