@@ -22,6 +22,7 @@ import { PropertyIdSymbol, TypeIdsSymbol } from '../constants.js';
2222export function EntitySchema <
2323 T extends Record <
2424 string ,
25+ // biome-ignore lint/suspicious/noExplicitAny: any
2526 ( propertyId : string ) => Schema . Schema < any > | Schema . PropertySignature < any , any , any , any , any , any , any >
2627 > ,
2728 P extends Record < keyof T , string > ,
@@ -34,6 +35,7 @@ export function EntitySchema<
3435) : Schema . Struct < {
3536 [ K in keyof T ] : ReturnType < T [ K ] > & { id : string } ;
3637} > {
38+ // biome-ignore lint/suspicious/noExplicitAny: any
3739 const properties : Record < string , Schema . Schema < any > | Schema . PropertySignature < any , any , any , any , any , any , any > > =
3840 { } ;
3941
@@ -42,6 +44,7 @@ export function EntitySchema<
4244 properties [ key ] = schemaType ( propertyId ) ;
4345 }
4446
47+ // biome-ignore lint/suspicious/noExplicitAny: any
4548 return Schema . Struct ( properties ) . pipe ( Schema . annotations ( { [ TypeIdsSymbol ] : mapping . types } ) ) as any ;
4649}
4750
@@ -55,6 +58,7 @@ export function encodeToGrc20Json<T extends object, E>(schema: Schema.Schema<T,
5558 ? ( prop . type . types . find ( ( member ) => ! SchemaAST . isUndefinedKeyword ( member ) ) ?? prop . type )
5659 : prop . type ;
5760 const result = SchemaAST . getAnnotation < string > ( PropertyIdSymbol ) ( propType ) ;
61+ // biome-ignore lint/suspicious/noExplicitAny: any
5862 const propertyValue : any = ( value as any ) [ prop . name ] ;
5963 if ( Option . isSome ( result ) && propertyValue !== undefined ) {
6064 out [ result . value ] = propertyValue ;
@@ -83,6 +87,7 @@ export function decodeFromGrc20Json<T extends object, E>(
8387 if ( Option . isSome ( result ) ) {
8488 const grc20Key = result . value ;
8589 if ( grc20Key in grc20Data && typeof prop . name === 'string' ) {
90+ // biome-ignore lint/suspicious/noExplicitAny: any
8691 out [ prop . name ] = ( grc20Data as any ) [ grc20Key ] ;
8792 }
8893 }
0 commit comments