Skip to main content
Module

x/deno_slack_hooks/utilities.ts

Helper library implementing the contract between the Slack CLI and Slack application SDKs
Go to Latest
import * as denoSlackHooks from "https://deno.land/x/deno_slack_hooks@1.1.0/utilities.ts";

Functions

Imports the provided file path and returns its default export. Throws an exception if the module has no default export.

getJSON attempts to read the given file. If successful, it returns the contents of the file. If the extraction fails, it returns an empty object.

Performs basic validation on all function definitions in a manifest; if any definition fails validation, an exception will be thrown.