Skip to content

Commit

Permalink
fix: add back Optional type import (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
zkhalapyan authored Jan 13, 2022
1 parent bae26fd commit 4b933d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/actions/shared/approve.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Token, TOKEN_PROGRAM_ID, u64 } from '@solana/spl-token';
import { Keypair, PublicKey, Transaction } from '@solana/web3.js';
import { Optional } from '../../types';

interface CreateApproveParams {
authority: Keypair;
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ export type MetadataJson = {
collection?: MetadataJsonCollection;
properties: MetadataJsonProperties;
};

export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
1 change: 0 additions & 1 deletion src/typings/index.d.ts

This file was deleted.

0 comments on commit 4b933d4

Please sign in to comment.