Skip to content

Commit

Permalink
Merge pull request #259 from achingbrain/fix/export-enum-values
Browse files Browse the repository at this point in the history
fix: export `DescriptionType` enum values
  • Loading branch information
murat-dogan authored Jun 22, 2024
2 parents 807a04f + e3437e9 commit 3bd4082
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface RtcConfig {
}

// Lowercase to match the description type string from libdatachannel
export const enum DescriptionType {
export enum DescriptionType {
Unspec = 'unspec',
Offer = 'offer',
Answer = 'answer',
Expand Down
8 changes: 8 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,11 @@ export default {
...nodeDataChannel,
DataChannelStream,
};

export const DescriptionType = {
Unspec: 'unspec',
Offer: 'offer',
Answer: 'answer',
Pranswer: 'pranswer',
Rollback: 'rollback',
};

0 comments on commit 3bd4082

Please sign in to comment.