Skip to content
Open
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ In order to submit http request to Conekta API you need to initialize the client
```ts
import { CustomersApi, Configuration, Customer, CustomerResponse } from "conekta";

const apikey = "key_xxxxx";
const config = new Configuration({ accessToken: apikey });
const accessToken = "key_xxxxx";
const config = new Configuration({ accessToken: accessToken });

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Thanks for improving the clarity of this example. As you mentioned in the pull request description, we can use property shorthand here. This will make the code even more concise and idiomatic.

Suggested change
const config = new Configuration({ accessToken: accessToken });
const config = new Configuration({ accessToken });

const client = new CustomersApi(config);

const customer: Customer = {
Expand Down