mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
Fix type errors related to siyuan.config (#10724)
* 🎨 Improve the type definition of `siyuan.config` * 🐛 Fix type errors related to `siyuan.config` * 💄 `types/config.d.ts` * 🐛 Fix type errors related to `siyuan.config`
This commit is contained in:
parent
433c0b6dde
commit
6b2ac5e630
18 changed files with 692 additions and 306 deletions
|
|
@ -451,7 +451,7 @@ export abstract class Constants {
|
|||
plugin: {},
|
||||
};
|
||||
|
||||
public static readonly SIYUAN_EMPTY_LAYOUT: Record<string, unknown> = {
|
||||
public static readonly SIYUAN_EMPTY_LAYOUT: Config.IUiLayout = {
|
||||
hideDock: false,
|
||||
layout: {
|
||||
"direction": "tb",
|
||||
|
|
@ -482,7 +482,14 @@ export abstract class Constants {
|
|||
"size": "auto",
|
||||
"type": "center",
|
||||
"instance": "Layout",
|
||||
"children": [{"instance": "Wnd", "children": [{"instance": "Tab", "children": []}]}]
|
||||
"children": [{
|
||||
"instance": "Wnd",
|
||||
"children": [],
|
||||
// "children": [{
|
||||
// "instance": "Tab",
|
||||
// "children": []
|
||||
// }]
|
||||
}]
|
||||
}, {
|
||||
"direction": "tb",
|
||||
"size": "0px",
|
||||
|
|
@ -580,9 +587,7 @@ export abstract class Constants {
|
|||
}
|
||||
};
|
||||
|
||||
public static readonly SIYUAN_DEFAULT_REPLACETYPES: {
|
||||
[key: string]: boolean;
|
||||
} = {
|
||||
public static readonly SIYUAN_DEFAULT_REPLACETYPES: Required<Config.IUILayoutTabSearchConfigReplaceTypes> = {
|
||||
"text": true,
|
||||
"imgText": true,
|
||||
"imgTitle": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue