You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,17 @@ export async function findPetsByStatus(
103
103
// ...
104
104
```
105
105
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.
0 commit comments