Skip to content

Commit

Permalink
chore: address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lcschy committed Nov 16, 2022
1 parent 79aa43f commit a9fbfb9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/elements/services/tokens.ts
Expand Up @@ -49,7 +49,7 @@ const delegateTokens = (
public retrieve(
id: string,
requestOptions?: RequestOptions
// returned data type as any to avoid casting when trying to retrieve token.data.<prop>
// avoid casting when accessing token data props
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<Token<any>> {
if (elements !== undefined) {
Expand Down
2 changes: 1 addition & 1 deletion src/tokens/BasisTheoryTokens.ts
Expand Up @@ -42,7 +42,7 @@ export const BasisTheoryTokens = new CrudBuilder(
public retrieve(
id: string,
options: RequestOptions = {}
// returned data type as any to avoid casting when trying to retrieve token.data.<prop>
// avoid casting when accessing token data props
// eslint-disable-next-line @typescript-eslint/no-explicit-any
): Promise<Token<any>> {
const url = `/${id}`;
Expand Down
2 changes: 1 addition & 1 deletion src/types/elements/services/tokens.ts
Expand Up @@ -10,7 +10,7 @@ type CreateToken = CreateTokenModel<ElementValue>;
type UpdateToken = UpdateTokenModel<ElementValue>;

type Tokens = Create<Token, CreateToken> &
// returned data type as any to avoid casting when trying to retrieve token.data.<prop>
// avoid casting when accessing token data props
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Retrieve<Token<any>> &
Update<Token, UpdateToken>;
Expand Down
2 changes: 1 addition & 1 deletion src/types/sdk/services/tokens.ts
Expand Up @@ -30,7 +30,7 @@ interface SearchTokensRequest {
interface Tokens
extends Create<Token, CreateToken>,
Update<Token, UpdateToken>,
// returned data type as any to avoid casting when trying to retrieve token.data.<prop>
// avoid casting when accessing token data props
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Retrieve<Token<any>>,
Delete,
Expand Down

0 comments on commit a9fbfb9

Please sign in to comment.