Skip to content

Commit 4b499b6

Browse files
committed
Fix typo and use T for generic for consistency
1 parent 18d640a commit 4b499b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BaseControllerV2.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('getAnonymizedState', () => {
243243
expect(anonymizedState).toEqual({ txMeta: { value: 10 } });
244244
});
245245

246-
it('should allow returning a ntested partial object from an anonymizing function', () => {
246+
it('should allow returning a nested partial object from an anonymizing function', () => {
247247
const anonymizeTransactionHash = (txMeta: {
248248
hash: string;
249249
value: number;

src/BaseControllerV2.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export type StateMetadata<T> = {
6363
* identifiable), or is set to a function that returns an anonymized
6464
* representation of this state.
6565
*/
66-
export interface StatePropertyMetadata<P> {
66+
export interface StatePropertyMetadata<T> {
6767
persist: boolean;
68-
anonymous: boolean | Anonymizer<P>;
68+
anonymous: boolean | Anonymizer<T>;
6969
}
7070

7171
/**

0 commit comments

Comments
 (0)