mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-19 23:05:51 +00:00
style: 完成所有文件的lint
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import React from 'react'
|
||||
import type { StatsStore } from './context/stats.js'
|
||||
import type { Root } from '@anthropic/ink'
|
||||
import type { Props as REPLProps } from './screens/REPL.js'
|
||||
import type { AppState } from './state/AppStateStore.js'
|
||||
import type { FpsMetrics } from './utils/fpsTracker.js'
|
||||
import React from 'react';
|
||||
import type { StatsStore } from './context/stats.js';
|
||||
import type { Root } from '@anthropic/ink';
|
||||
import type { Props as REPLProps } from './screens/REPL.js';
|
||||
import type { AppState } from './state/AppStateStore.js';
|
||||
import type { FpsMetrics } from './utils/fpsTracker.js';
|
||||
|
||||
type AppWrapperProps = {
|
||||
getFpsMetrics: () => FpsMetrics | undefined
|
||||
stats?: StatsStore
|
||||
initialState: AppState
|
||||
}
|
||||
getFpsMetrics: () => FpsMetrics | undefined;
|
||||
stats?: StatsStore;
|
||||
initialState: AppState;
|
||||
};
|
||||
|
||||
export async function launchRepl(
|
||||
root: Root,
|
||||
@@ -17,12 +17,12 @@ export async function launchRepl(
|
||||
replProps: REPLProps,
|
||||
renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>,
|
||||
): Promise<void> {
|
||||
const { App } = await import('./components/App.js')
|
||||
const { REPL } = await import('./screens/REPL.js')
|
||||
const { App } = await import('./components/App.js');
|
||||
const { REPL } = await import('./screens/REPL.js');
|
||||
await renderAndRun(
|
||||
root,
|
||||
<App {...appProps}>
|
||||
<REPL {...replProps} />
|
||||
</App>,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user