You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
591 B
TypeScript
28 lines
591 B
TypeScript
// 从主进程中想渲染进程发送的参数
|
|
import { SourceStatus, SourceType } from "renderer/common/types";
|
|
|
|
declare interface SourceUrl {
|
|
title: string;
|
|
duration: number;
|
|
details: Electron.OnBeforeSendHeadersListenerDetails;
|
|
}
|
|
|
|
declare type SourceItem = SourceUrl & {
|
|
loading: boolean;
|
|
status: SourceStatus;
|
|
type: SourceType;
|
|
directory: string;
|
|
};
|
|
|
|
declare function SourceUrlToRenderer(
|
|
event: Electron.IpcRendererEvent,
|
|
url: SourceUrl
|
|
): void;
|
|
|
|
declare interface Fav {
|
|
url: string;
|
|
title: string;
|
|
}
|
|
|
|
export { SourceUrl, SourceUrlToRenderer, Fav, SourceItem };
|