Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_slack_sdk/parameters/definition_types.ts

SDK for building Run on Slack apps using Deno
Extremely Popular
Go to Latest
import * as denoSlackSdk from "https://deno.land/x/deno_slack_sdk@2.2.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.