Skip to main content
Module

x/scaffold/src/deps/types.ts>Float

scaffold your next project with style and 💗
Latest
type alias Float
import { type Float } from "https://deno.land/x/scaffold@0.3.0/src/deps/types.ts";

A number that is not an integer. You can't pass a bigint as they are already guaranteed to be integers.

Use-case: Validating and documenting parameters.

Examples

Example 1

import type {Float} from 'type-fest';

declare function setPercentage<T extends number>(length: Float<T>): void;

Type Parameters

T extends number
definition: T extends Integer<T> ? never : T