Skip to content

Commit

Permalink
chore: rename TypedInfer to InferEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
danroc committed Oct 19, 2024
1 parent e2f92c5 commit f1735e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/keyring-api/src/api/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
CaipAssetTypeStruct,
} from '@metamask/utils';

import type { TypedInfer } from '../superstruct';
import type { InferEquals } from '../superstruct';
import { object } from '../superstruct';
import type { Paginated } from '../utils';
import { StringNumberStruct, UuidStruct } from '../utils';
Expand Down Expand Up @@ -324,7 +324,7 @@ export const TransactionsPageStruct = object({
*
* See {@link TransactionsPageStruct}.
*/
export type TransactionsPage = TypedInfer<
export type TransactionsPage = InferEquals<
typeof TransactionsPageStruct,
Paginated<Transaction>
>;
2 changes: 1 addition & 1 deletion packages/keyring-api/src/superstruct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export function strictMask<Type, Schema>(
* @param StructType - The struct type to infer.
* @param ExpectedType - The expected type.
*/
export type TypedInfer<
export type InferEquals<
StructType extends Struct<any, any>,
ExpectedType,
> = Equals<Infer<StructType>, ExpectedType> extends true
Expand Down

0 comments on commit f1735e2

Please sign in to comment.