Improve signature of compile method
Improve signature of compile method

We always return a function, and `Function` is still compatible with
`string | Function` of the superclass

lephyrus/ngx-translate-messageformat-compiler,lephyrus/ngx-translate-messageformat-compiler