Skip to content
Snippets Groups Projects
  • Joel Jeremy Marquez's avatar
    6fae7956
    Some typescript migration (#1532) · 6fae7956
    Joel Jeremy Marquez authored
    * Typescript migration
    
    * Release notes
    
    * Update error boundary
    
    * Breakup sidebar components
    
    * Account and Sidebar props
    
    * Remove button in Item component + exports cleanup
    
    * Put accountNameStyle to Account
    
    * Revert component ports (separated to another PR)
    
    * Export cleanup
    
    * Remove ErrorBoundary (separated to another PR)
    
    * Sidebar budgetName as ReactNode
    Some typescript migration (#1532)
    Joel Jeremy Marquez authored
    * Typescript migration
    
    * Release notes
    
    * Update error boundary
    
    * Breakup sidebar components
    
    * Account and Sidebar props
    
    * Remove button in Item component + exports cleanup
    
    * Put accountNameStyle to Account
    
    * Revert component ports (separated to another PR)
    
    * Export cleanup
    
    * Remove ErrorBoundary (separated to another PR)
    
    * Sidebar budgetName as ReactNode
window.d.ts 518 B
export {};

declare global {
  interface Window {
    Actual?: {
      IS_FAKE_WEB: boolean;
      ACTUAL_VERSION: string;
      openURLInBrowser: (url: string) => void;
      saveFile: (
        contents: Buffer,
        filename: string,
        dialogTitle: string,
      ) => void;
      openFileDialog: (
        opts: Parameters<import('electron').Dialog['showOpenDialogSync']>[0],
      ) => Promise<string[]>;
      relaunch: () => void;
    };

    __navigate?: import('react-router').NavigateFunction;
  }
}