import type { RequestHandler , Schema , Service } from '../src' ; interface InvalidSchema extends Schema { paths : { 'GET /invalid' : { } ; 'POST /typoInParam/:uuid' : { request : { params : { id : string ; } ; } ; response : { 200 : { } ; } ; } ; } ; } type GetInvalid = RequestHandler < InvalidSchema , 'GET /invalid' > ; const getInvalid = ( req , res ) => { } ; const postTypoInParam = ( req , res ) => { } ; function never ( _ ) { throw Error ( 'never' ) ; } never ( getInvalid ) ; never ( postTypoInParam ) ; const service = { 'GET /invalid' : ( ) => { return undefined ; } , 'POST /typoInParam/:uuid' : ( ) => { return undefined ; } , } ; console . log ( service ) ;