Best way is to use templating => add id to your input and then use it value
<input type="text" #notaryLockup (keyup) = "searchNotary(notaryLockup.value)"placeholder="Entrez des information" >
searchNotary(value: string) {
// your logic
}
this way you will never have Typescript error when strict verification is activated => See angular Docs