Skip to content

Commit 319bc14

Browse files
committed
Also no more default type export for VideomailClient
1 parent b13cdd3 commit 319bc14

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

src/__tests__/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import VideomailClient from "../client";
1+
import { VideomailClient } from "../client";
22

33
describe("Client", () => {
44
const mock = {

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ class VideomailClient extends Despot {
160160
}
161161
}
162162

163-
export default VideomailClient;
163+
export { VideomailClient };

src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import VideomailClient from "./client";
2-
31
export type { Command } from "./types/command";
42
export type { VideomailCommandArgs } from "./types/command";
53
export type { DeliveryRecord } from "./types/Delivery";
@@ -8,6 +6,7 @@ export type { FullVideomailErrorData, VideomailErrorData } from "./types/error";
86
export type { VideomailEvents, VideomailPreviewParams } from "./types/events";
97
export type { VideomailClientOptions } from "./types/options";
108
export type RecordingStats = "./types/RecordingStats";
9+
export { VideomailClient } from "./client";
1110
export type { PartialVideomail, Videomail } from "./types/Videomail";
12-
13-
export { VideomailClient };
11+
export type { VideoTypeType } from "./types/VideoType";
12+
export { VideoType } from "./types/VideoType";

src/stories/Correct.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from "@storybook/html";
22

3-
import VideomailClient from "../client";
3+
import { VideomailClient } from "../client";
44
import { PartialVideomailClientOptions } from "../types/options";
55
import videomailExample from "./static/json/videomail";
66

src/stories/Error.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from "@storybook/html";
22

3-
import VideomailClient from "../client";
3+
import { VideomailClient } from "../client";
44
import { PartialVideomailClientOptions } from "../types/options";
55

66
const meta: Meta<PartialVideomailClientOptions> = {

src/stories/Player.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Meta, StoryObj } from "@storybook/html";
22

3-
import VideomailClient from "../client";
3+
import { VideomailClient } from "../client";
44
import { PartialVideomailClientOptions } from "../types/options";
55
import videomailExample from "./static/json/videomail";
66

src/stories/Record.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import "./static/css/entertain.css";
22

33
import type { Meta, StoryObj } from "@storybook/html";
44

5-
import VideomailClient from "../client";
5+
import { VideomailClient } from "../client";
66
import { PartialVideomailClientOptions } from "../types/options";
77

88
const meta: Meta<PartialVideomailClientOptions> = {

src/types/VideoType.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// TODO This isn't actually a type and should be moved elsewhere
12
export const VideoType = {
23
WebM: "webm",
34
MP4: "mp4",

0 commit comments

Comments
 (0)