File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ export const validateFetchIpfsJsonMapping = (mapping: ActionMapping) => {
3030} ;
3131
3232export const validateRealityMapping = ( mapping : ActionMapping ) => {
33- if ( mapping . type !== "reality" || typeof ( mapping as RealityMapping ) . realityQuestionID !== "string" ) {
33+ if ( mapping . type !== "reality" || typeof mapping . realityQuestionID !== "string" ) {
3434 throw new InvalidMappingError ( "Expected field 'realityQuestionID' to be a string." ) ;
3535 }
36- return mapping as RealityMapping ;
36+ return mapping ;
3737} ;
3838
3939const validateMapping = < T extends ActionMapping > ( mapping : T , requiredFields : ( keyof T ) [ ] ) => {
Original file line number Diff line number Diff line change 1- import { defineConfig } from "vitest/config" ;
2- import { configDefaults } from "vitest/config" ;
1+ import { defineConfig , configDefaults } from "vitest/config" ;
32
43export default defineConfig ( {
54 test : {
You can’t perform that action at this time.
0 commit comments