Skip to content

Commit

Permalink
chore: Move all imports to top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
PartMan7 committed Oct 29, 2024
1 parent dc1f3fc commit 15453ab
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/globals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ import fsSync from 'fs';
import path from 'path';
import React from 'react';

import * as Tools from '@/tools';
import { fsPath } from '@/utils/fs-path';
import { log } from '@/utils/logger';
import { ChatError } from '@/utils/chat-error';

import { jsxToHTML } from '@/utils/jsx-to-html';

global.axios = axios;
global.fs = fsSync.promises;
global.fsSync = fsSync;
global.path = path;
global.React = React;

import * as Tools from '@/tools';
global.Tools = Tools;

import { fsPath } from '@/utils/fs-path';
global.fsPath = fsPath;
import { log } from '@/utils/logger';
global.log = log;
import { jsxToHTML } from '@/utils/jsx-to-html';
global.jsxToHTML = jsxToHTML;

import { ChatError } from '@/utils/chat-error';
global.ChatError = ChatError;

global.jsxToHTML = jsxToHTML;

0 comments on commit 15453ab

Please sign in to comment.