Skip to content

Latest commit

 

History

History
126 lines (85 loc) · 1.53 KB

types.md

File metadata and controls

126 lines (85 loc) · 1.53 KB
title
Types

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';

to-bi, to-bigint

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(value Any) | to-bi | (y BigInt)
88 to-bi => 88n

Coerces any value to BigInt.

to-float, to-f

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(value Any) | to-float | (y Float)
88 to-float => 88.0

Coerces any value to Float.

to-int, to-i

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(value Any) | to-int | (y Int)
"99" to-int => 99

Coerces any value to Int.

to-string, to-s

<Tabs defaultValue="signature" values={[ {label: 'Signature', value: 'signature'}, {label: 'Example', value: 'example'}, ]}

(value Any) | to-string | (y String)
88 to-string => "88"

Coerces any value to String.