Skip to main content
Go to Latest
interface TypedObjectParameterDefinition
import { type TypedObjectParameterDefinition } from "https://deno.land/x/deno_slack_sdk@1.5.0/parameters/definition_types.ts";

Models the shape of a Typed Object parameter, and using the two generics, models the dependent relationship between the properties of an object and which of the properties are required vs. optional

Properties

optional
additionalProperties: boolean

Whether the parameter can accept objects with additional keys beyond those defined via properties

properties: Props

Object defining what properties are allowed on the parameter.

optional
required: RequiredProps

A list of required property names (must reference names defined on the properties property). Only for use with Object types.