@chec/integration-handler
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

Chec Integration Handler

This package serves to provide TypeScript types for integrations created to work with the Chec infrastructure and dashboard. Please refer to the integration guide for getting started with an integration.

Installation

npm install -D @chec/integration-handler
# OR
yarn add -D @chec/integration-handler

Usage

Like the integration configuration SDK you can specify a type for your integration configuration. This will ensure that proper types are provided when using various APIs provided by the context parameter, which is used for fetch configuration for your integration.

import { IntegrationHandler } from '@chec/integration-handler';

interface MyIntegrationConfiguration {
  configKey: string
}

const handler: IntegrationHandler<MyIntegrationConfiguration> = async (request, context) => {

};

export = handler;

Readme

Keywords

none

Package Sidebar

Install

npm i @chec/integration-handler

Weekly Downloads

1

Version

0.0.16

License

BSD-3-Clause

Unpacked Size

6.11 kB

Total Files

4

Last publish

Collaborators

  • checplatform
  • dvnkshl
  • robbieaverill
  • scopey
  • notrab
  • kvisca
  • jaeriahtay