delimiter
SDK / TYPESCRIPT

TypeScript

Zero type interference#

The SDK is written in TypeScript and ships with type definitions. Since Delimiter works at the network layer, your AI client types are completely unaffected.

import { delimiter } from '@delimiter/sdk'
import OpenAI from 'openai'

delimiter.init('dlm_key')

// Your types are exactly as before — nothing is wrapped or proxied
const openai = new OpenAI({ apiKey: process.env.OPENAI_KEY! })

const response: OpenAI.Chat.ChatCompletion = await openai.chat.completions.create({
  model: 'gpt-4o',
  messages: [{ role: 'user', content: 'Hello' }]
})

No additional packages#

  • No @types/delimiter package needed
  • Types are bundled with @delimiter/sdk
  • Works with TypeScript 5.0+