Skip to content

convert types for arguments into their own interfaces #5

@pyramation

Description

@pyramation
export interface SG721ReadOnlyInterface {
  contractAddress: string;
  ownerOf: ({includeExpired, tokenId}:{includeExpired?: boolean, tokenId?: string}) => Promise<OwnerOfResponse>;
}

could become

export interface OwnerOfParams {
  includeExpired?: boolean;
  tokenId?: string;
}

export interface SG721ReadOnlyInterface {
  contractAddress: string;
  ownerOf: (value: OwnerOfParams) => Promise<OwnerOfResponse>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions