Value.ReplaceType

ไวยากรณ์

Value.ReplaceType(value as any, type as type) as any

เกี่ยวกับ

valueแทนที่ชนิดของ ด้วย ที่ให้มาtype

ตัวอย่างที่ 1

แทนที่ชนิดเริ่มต้นของระเบียนด้วยชนิดที่เฉพาะเจาะจงมากขึ้น

การใช้งาน

Type.RecordFields(
    Value.Type(
        Value.ReplaceType(
            [Column1 = 123],
            type [Column1 = number]
        )
    )
)[Column1][Type]

เอาท์พุท

type number