mirror of
https://github.com/thelounge/thelounge.git
synced 2026-03-14 14:35:50 +01:00
changelog data type
This commit is contained in:
parent
4d237600d5
commit
7bc184b252
3 changed files with 21 additions and 19 deletions
15
shared/types/changelog.ts
Normal file
15
shared/types/changelog.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
export type SharedChangelogData = {
|
||||
current: {
|
||||
prerelease: boolean;
|
||||
version: string;
|
||||
changelog?: string;
|
||||
url: string;
|
||||
};
|
||||
expiresAt: number;
|
||||
latest?: {
|
||||
prerelease: boolean;
|
||||
version: string;
|
||||
url: string;
|
||||
};
|
||||
packages?: boolean;
|
||||
};
|
||||
4
shared/types/socket-events.d.ts
vendored
4
shared/types/socket-events.d.ts
vendored
|
|
@ -3,7 +3,7 @@ import {SharedMention} from "../../shared/types/mention";
|
|||
import {ChanState} from "../../shared/types/chan";
|
||||
import {SharedMsg, ClientMessage} from "../../shared/types/msg";
|
||||
import {SharedUser} from "../../shared/types/user";
|
||||
import {ChangelogData} from "../plugins/changelog";
|
||||
import {SharedChangelogData} from "../../shared/types/changelog";
|
||||
import {LinkPreview} from "../plugins/irc-events/link";
|
||||
import {ClientConfiguration} from "../server";
|
||||
|
||||
|
|
@ -23,7 +23,7 @@ interface ServerToClientEvents {
|
|||
|
||||
"upload:auth": (token: string) => void;
|
||||
|
||||
changelog: (data: ChangelogData) => void;
|
||||
changelog: (data: SharedChangelogData) => void;
|
||||
"changelog:newversion": () => void;
|
||||
|
||||
"channel:state": (data: {chan: number; state: ChanState}) => void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue