Skip to main content
Module

x/actionify/deploy/modules/utils.ts>json

Create and manage your GitHub workflows with TypeScript and Deno.
Latest
function json
import { json } from "https://deno.land/x/actionify@0.3.0/deploy/modules/utils.ts";

This is a shortcut for creating application/json responses. Converts data to JSON and sets the Content-Type header.

Type Parameters

optional
Data = object

Parameters

data: Data
optional
init: number | ResponseInit = [UNSUPPORTED]