mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
chore(client/ts): port services/resizer
This commit is contained in:
parent
7c2002c589
commit
f3a7de58d5
@ -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;
|
7
src/public/app/types.d.ts
vendored
7
src/public/app/types.d.ts
vendored
@ -85,4 +85,11 @@ declare global {
|
||||
});
|
||||
};
|
||||
var dayjs: {};
|
||||
var Split: (selectors: string[], config: {
|
||||
sizes: [ number, number ];
|
||||
gutterSize: number;
|
||||
onDragEnd: (sizes: [ number, number ]) => void;
|
||||
}) => {
|
||||
destroy();
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user