mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 18:19:58 +00:00
Make type imports explicit
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
import { Channel } from "castv2";
|
||||
import type { Channel } from "castv2";
|
||||
|
||||
import messaging from "../../messaging";
|
||||
|
||||
import { ReceiverDevice } from "../../messagingTypes";
|
||||
import { ReceiverMessage } from "./types";
|
||||
import type { ReceiverDevice } from "../../messagingTypes";
|
||||
import type { ReceiverMessage } from "./types";
|
||||
|
||||
import CastClient, { NS_CONNECTION, NS_HEARTBEAT } from "./client";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import { Channel, Client } from "castv2";
|
||||
|
||||
import { ReceiverMessage, SenderMessage } from "./types";
|
||||
import type { ReceiverMessage, SenderMessage } from "./types";
|
||||
|
||||
export const NS_CONNECTION = "urn:x-cast:com.google.cast.tp.connection";
|
||||
export const NS_HEARTBEAT = "urn:x-cast:com.google.cast.tp.heartbeat";
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import mdns from "mdns";
|
||||
|
||||
import { ReceiverDevice } from "../../messagingTypes";
|
||||
import type { ReceiverDevice } from "../../messagingTypes";
|
||||
|
||||
/**
|
||||
* Chromecast TXT record
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import CastClient from "./client";
|
||||
|
||||
import {
|
||||
import type {
|
||||
MediaStatus,
|
||||
ReceiverMessage,
|
||||
ReceiverMediaMessage,
|
||||
|
||||
@@ -4,14 +4,14 @@ import { TypedEmitter } from "tiny-typed-emitter";
|
||||
|
||||
import { DecodeTransform, EncodeTransform } from "../transforms";
|
||||
|
||||
import {
|
||||
import type {
|
||||
MediaStatus,
|
||||
ReceiverStatus,
|
||||
SenderMediaMessage,
|
||||
SenderMessage
|
||||
} from "./components/cast/types";
|
||||
|
||||
import {
|
||||
import type {
|
||||
ReceiverDevice,
|
||||
CastSessionCreatedDetails,
|
||||
CastSessionUpdatedDetails
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
import {
|
||||
import type {
|
||||
Image,
|
||||
ReceiverStatus,
|
||||
SenderApplication,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use strict";
|
||||
|
||||
import { Transform, TransformCallback } from "stream";
|
||||
import { Message } from "./bridge/messaging";
|
||||
import type { Message } from "./bridge/messaging";
|
||||
|
||||
type ResponseHandlerFunction = (message: Message) => Promise<unknown>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user