From 4b499b6fc26c2daee89317a08db6544292304ae1 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Thu, 25 Feb 2021 10:38:15 -0330 Subject: [PATCH] Fix typo and use T for generic for consistency --- src/BaseControllerV2.test.ts | 2 +- src/BaseControllerV2.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BaseControllerV2.test.ts b/src/BaseControllerV2.test.ts index ccd6f37b195..1b1801bfeff 100644 --- a/src/BaseControllerV2.test.ts +++ b/src/BaseControllerV2.test.ts @@ -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; diff --git a/src/BaseControllerV2.ts b/src/BaseControllerV2.ts index bfa139e9a29..c8b2a4eb0a3 100644 --- a/src/BaseControllerV2.ts +++ b/src/BaseControllerV2.ts @@ -63,9 +63,9 @@ export type StateMetadata = { * identifiable), or is set to a function that returns an anonymized * representation of this state. */ -export interface StatePropertyMetadata

{ +export interface StatePropertyMetadata { persist: boolean; - anonymous: boolean | Anonymizer

; + anonymous: boolean | Anonymizer; } /**