This PR adds types and enums to the exports of the main module. This allows a user to require types and enums along with the main createClient factory, to use them in client applications.
before:
const { createClient } = require("@deepgram/sdk");
const { LiveTranscriptionEvents } = require("@deepgram/sdk/dist/main/lib/enums");
// or
import { createClient } from "@deepgram/sdk";
import { LiveTranscriptionEvents } from "@deepgram/sdk/dist/main/lib/enums";
after:
const { createClient, LiveTranscriptionEvents } = require("@deepgram/sdk");
// or
import { createClient, LiveTranscriptionEvents } from "@deepgram/sdk";
This PR adds types and enums to the exports of the main module. This allows a user to require types and enums along with the main
createClient
factory, to use them in client applications.before:
after: