Skip to content

Commit

Permalink
feat(schema-type): add isSchemaAbiType
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1a committed Nov 7, 2023
1 parent ce2e976 commit 8d14438
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/schema-type/src/typescript/schemaAbiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,3 +211,7 @@ export const dynamicAbiTypes = schemaAbiTypes.slice(98) as any as TupleSplit<typ

export type StaticAbiType = (typeof staticAbiTypes)[number];
export type DynamicAbiType = (typeof dynamicAbiTypes)[number];

export function isSchemaAbiType(abiType: unknown): abiType is SchemaAbiType {
return schemaAbiTypes.includes(abiType as SchemaAbiType);
}

0 comments on commit 8d14438

Please sign in to comment.