Skip to main content
Module

x/deno_slack_sdk/parameters/definition_types.ts

SDK for building Run on Slack apps using Deno
Go to Latest
import * as denoSlackSdk from "https://deno.land/x/deno_slack_sdk@2.1.0/parameters/definition_types.ts";

Interfaces

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

Type Aliases

Only used for defining Custom Types via DefineType The below type is explicitly different from the above ParameterDefinition type in that:

  • It replaces the generic-less ComplexParameterDefinition so that...
  • It can lift the generic-ful TypeddObjectParamaterDefinition's generics to ParameterDefinitionWithgenerics so that...
  • The props/required props generic pair, which rely on each other, can be exposed in DefineType so that...
  • .. the dependency between props/required props can be raised to the dev when authoring function runtime logic, and e.g. not returning a required property in a function output

Models only the shape of a Typed Object parameter Unlike TypedObjectParameterDefinition above, does not constrain the elements of the required array to the keys of the properties object.