Skip to content

Commit

Permalink
Fix typo and use T for generic for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudahtt committed Feb 25, 2021
1 parent 18d640a commit 4b499b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BaseControllerV2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ describe('getAnonymizedState', () => {
expect(anonymizedState).toEqual({ txMeta: { value: 10 } });
});

it('should allow returning a ntested partial object from an anonymizing function', () => {
it('should allow returning a nested partial object from an anonymizing function', () => {
const anonymizeTransactionHash = (txMeta: {
hash: string;
value: number;
Expand Down
4 changes: 2 additions & 2 deletions src/BaseControllerV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export type StateMetadata<T> = {
* identifiable), or is set to a function that returns an anonymized
* representation of this state.
*/
export interface StatePropertyMetadata<P> {
export interface StatePropertyMetadata<T> {
persist: boolean;
anonymous: boolean | Anonymizer<P>;
anonymous: boolean | Anonymizer<T>;
}

/**
Expand Down

0 comments on commit 4b499b6

Please sign in to comment.