Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,17 @@ export async function findPetsByStatus(
// ...
```

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).

```ts
import { findPetsByStatus } from '@/apis/pet';

// There are type hints when calling functions and writing parameters, thanks to TypeScript.
const pets = await findPetsByStatus({
status: ['avaliable'],
});
```

## API

```ts
Expand Down