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

isRefresh

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

Check if a Datum is in the Refresh state.

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

console.log(isRefresh(initial)); // false
console.log(isRefresh(refresh("data"))); // true
console.log(isRefresh(replete("data"))); // false
function isRefresh<A>(ta: Datum<A>): ta is Refresh<A>;
§
isRefresh<A>(ta: Datum<A>): ta is Refresh<A>
[src]

§Type Parameters

§Parameters

§Return Type