import URITemplate from "uri-templates" ; export function isURITemplateMatch ( url , template ) { const uriTemplate = URITemplate ( template ) ; const result = ( uriTemplate . fromUri as any ) ( url , { strict : true } ) ; if ( result === undefined ) { return false ; } for ( const key in result ) { if ( result . hasOwnProperty ( key ) ) { const element = result [ key ] ; if ( element === "" ) { return false ; } } } return true ; }