Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/actionify/src/deps/types.ts>JsonObject

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
type alias JsonObject
import { type JsonObject } from "https://deno.land/x/actionify@0.3.0/src/deps/types.ts";

Matches a JSON object.

This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: jsonObject as unknown as CustomResponse. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: interface CustomResponse extends JsonObject { … }.

definition: [Key in string]?: JsonValue