Skip to content

Commit

Permalink
docs: refactor ts
Browse files Browse the repository at this point in the history
  • Loading branch information
YumoImer committed Dec 4, 2024
1 parent bad3a90 commit 0702eb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/x-request/demo/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const exampleRequest = XRequest({

const App = () => {
const [status, setStatus] = React.useState<ThoughtChainItem['status']>();
const [lines, setLines] = React.useState<any[]>([]);
const [lines, setLines] = React.useState<Record<string, string>[]>([]);

async function request() {
setStatus('pending');
Expand Down
2 changes: 1 addition & 1 deletion components/x-request/demo/custom-transformer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const exampleRequest = XRequest({

const App = () => {
const [status, setStatus] = React.useState<ThoughtChainItem['status']>();
const [lines, setLines] = React.useState<any[]>([]);
const [lines, setLines] = React.useState<string[]>([]);

async function request() {
setStatus('pending');
Expand Down

0 comments on commit 0702eb9

Please sign in to comment.