This might be a little winded but go with me here 
I'm creating a new SMS provider to allow an enterprise SNPP connection. (more on that in the PR) - anyways, when creating the customSnpp.handler.ts file, and assigning this.provider = new CustomSnppSmsProvider(config); I'm getting an error that states Type 'CustomSnppSmsProvider' is not assignable to type 'ISmsProvider', however everything is set up properly. If I do this.provider = new CustomSnppSmsProvider(config) as any;, the project compiles and runs but I don't like do the any claim in typescript.
Here is a snipping of the Provider:
export class CustomSnppSmsProvider implements ISmsProvider {
id = 'customsnpp';
channelType = ChannelTypeEnum.SMS as ChannelTypeEnum.SMS;
constructor(
private config: {
host: string;
port: number;
username: string;
password: string;
}
) {
this.config = config;
}
async sendMessage(
options: ISmsOptions
): Promise<ISendMessageSuccessResponse> {
const client = new net.Socket();
let responseCode = '';
......
and here is a snipping of the handler:
export class CustomSnppHandler extends BaseSmsHandler {
constructor() {
super('customsnpp', ChannelTypeEnum.SMS);
}
buildProvider(credentials: ICredentials) {
const config: {
host: string;
port: number;
username: string;
password: string;
} = {
host: credentials.host,
port: +credentials.port,
username: credentials.user,
password: credentials.password,
};
this.provider = new CustomSnppSmsProvider(config);
}
}
thoughts?
