chore(client/ts): port services/resizer

This commit is contained in:
Elian Doran 2024-12-19 22:19:35 +02:00
parent 7c2002c589
commit f3a7de58d5
No known key found for this signature in database
2 changed files with 10 additions and 3 deletions

View File

@ -1,9 +1,9 @@
import options from "./options.js";
let leftInstance;
let rightInstance;
let leftInstance: ReturnType<typeof Split> | null;
let rightInstance: ReturnType<typeof Split> | null;
function setupLeftPaneResizer(leftPaneVisible) {
function setupLeftPaneResizer(leftPaneVisible: boolean) {
if (leftInstance) {
leftInstance.destroy();
leftInstance = null;

View File

@ -85,4 +85,11 @@ declare global {
});
};
var dayjs: {};
var Split: (selectors: string[], config: {
sizes: [ number, number ];
gutterSize: number;
onDragEnd: (sizes: [ number, number ]) => void;
}) => {
destroy();
};
}