fix: resolve TypeScript compilation errors after refactoring
- Add missing ExportErrorHandler import in SettingsTab.ts - Add customEnvironmentVariables property to settings interface - Fix undefined metadata access with optional chaining in EmbedProcessor.ts - Update ModalState.ts to use new nested settings structure - Simplify ExportConfigModal.ts to use full settings object - Add null safety checks for templateDropdown in GeneralSection.ts
This commit is contained in:
6 files changed
+30
-43
No files matched your search
@@ -25,6 +25,9 @@ export interface obsidianTypstPDFExportSettings {
|
||||
additionalPaths: string[];
|
||||
};
|
||||
|
||||
/** Custom environment variables for subprocess execution */
|
||||
customEnvironmentVariables: { [key: string]: string };
|
||||
|
||||
/** Export defaults */
|
||||
exportDefaults: {
|
||||
/** Default template to use for exports */
|
||||
@@ -108,6 +111,8 @@ export const DEFAULT_SETTINGS: obsidianTypstPDFExportSettings = {
|
||||
additionalPaths: ['/opt/homebrew/bin', '/usr/local/bin', '/usr/bin']
|
||||
},
|
||||
|
||||
customEnvironmentVariables: {},
|
||||
|
||||
exportDefaults: {
|
||||
template: 'default',
|
||||
format: ExportFormat.Standard,
|
||||
|
||||
Reference in new issue
Block a user