Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

toLoading

import { toLoading } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/datum.ts";

Convert a Datum to a Loading state.

@example
import { toLoading, replete, initial } from "./datum.ts";

const datum1 = toLoading(replete("data")); // Refresh("data")
const datum2 = toLoading(initial); // Pending
function toLoading<A>(ta: Datum<A>): Datum<A>;
§
toLoading<A>(ta: Datum<A>): Datum<A>
[src]

§Type Parameters

§Parameters

§Return Type