Fix all biome linter errors (#541)
This commit is contained in:
parent
f23c73f6a5
commit
e5d654bf41
46 changed files with 317 additions and 275 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { SetStateAction } from 'react';
|
||||
import type { SetStateAction } from 'react';
|
||||
|
||||
import { UIBlock } from './block';
|
||||
import type { UIBlock } from './block';
|
||||
import { FileIcon, LoaderIcon, MessageIcon, PencilEditIcon } from './icons';
|
||||
|
||||
const getActionText = (type: 'create' | 'update' | 'request-suggestions') => {
|
||||
|
|
@ -18,7 +18,7 @@ const getActionText = (type: 'create' | 'update' | 'request-suggestions') => {
|
|||
|
||||
interface DocumentToolResultProps {
|
||||
type: 'create' | 'update' | 'request-suggestions';
|
||||
result: any;
|
||||
result: { id: string; title: string };
|
||||
block: UIBlock;
|
||||
setBlock: (value: SetStateAction<UIBlock>) => void;
|
||||
}
|
||||
|
|
@ -70,7 +70,7 @@ export function DocumentToolResult({
|
|||
|
||||
interface DocumentToolCallProps {
|
||||
type: 'create' | 'update' | 'request-suggestions';
|
||||
args: any;
|
||||
args: { title: string };
|
||||
}
|
||||
|
||||
export function DocumentToolCall({ type, args }: DocumentToolCallProps) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue