deepgram / deepgram-js-sdk

Official JavaScript SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
127 stars 45 forks source link

feat: export types and enums from main module #167

Closed lukeocodes closed 8 months ago

lukeocodes commented 8 months ago

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";
codecov-commenter commented 8 months ago

Welcome to Codecov :tada:

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered :open_umbrella: