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

ActionBase

import type { ActionBase } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";

an interface to extends for typed actions related to the State Mutator pattern

interface ActionBase <ActionType = string | number> {
payload?: {
[key: string]: unknown;
}
;
type: ActionType;
}

§Type Parameters

§
ActionType = string | number
[src]

§Properties

§
payload?: {
[key: string]: unknown;
}
[src]
§
type: ActionType
[src]