move typings into a separate directory

This commit is contained in:
Labhansh Agrawal 2023-07-25 15:09:51 +05:30
parent 33f7d2bad5
commit c62ed62752
56 changed files with 87 additions and 78 deletions

View file

@ -1,5 +1,5 @@
import type {Dispatch, Middleware} from 'redux';
import type {HyperActions, HyperState} from '../hyper';
import type {HyperActions, HyperState} from '../../typings/hyper';
/**
* Simple redux middleware that executes
* the `effect` field if provided in an action

View file

@ -1,4 +1,4 @@
import {ipcRenderer as _ipc} from 'electron';
import type {IpcRendererWithCommands} from '../../common';
import type {IpcRendererWithCommands} from '../../typings/common';
export const ipcRenderer = _ipc as IpcRendererWithCommands;

View file

@ -28,7 +28,7 @@ import type {
TermProps,
Assignable,
HyperActions
} from '../hyper';
} from '../../typings/hyper';
import type {Dispatch, Middleware} from 'redux';
import {ObjectTypedKeys} from './object';
import IPCChildProcess from './ipc-child-process';

View file

@ -1,6 +1,12 @@
import {EventEmitter} from 'events';
import type {IpcRendererEvent} from 'electron';
import type {FilterNever, IpcRendererWithCommands, MainEvents, RendererEvents, TypedEmitter} from '../../common';
import type {
FilterNever,
IpcRendererWithCommands,
MainEvents,
RendererEvents,
TypedEmitter
} from '../../typings/common';
import {ipcRenderer} from './ipc';
export default class Client {

View file

@ -1,4 +1,4 @@
import type {ITermState} from '../hyper';
import type {ITermState} from '../../typings/hyper';
export default function findBySession(termGroupState: ITermState, sessionUid: string) {
const {termGroups} = termGroupState;