Skip to content

Commit 870c4e3

Browse files
authored
Merge pull request #64 from cloudcome/feat/v0.x
fix: 触发 release 2023-03-17 01:48:33
2 parents 9e006f4 + e92a1dc commit 870c4e3

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)