Skip to content

Commit e92a1dc

Browse files
committed
fix: 触发 release
1 parent 9e006f4 commit e92a1dc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ export async function findPetsByStatus(
103103
// ...
104104
```
105105

106+
Then you can directly import a function and use it. Calling an interface is as simple as calling a local function, is it similar to RPC (remote procedure call).
107+
108+
```ts
109+
import { findPetsByStatus } from '@/apis/pet';
110+
111+
// There are type hints when calling functions and writing parameters, thanks to TypeScript.
112+
const pets = await findPetsByStatus({
113+
status: ['avaliable'],
114+
});
115+
```
116+
106117
## API
107118

108119
```ts

0 commit comments

Comments
 (0)