terary / gabby-query-protocol-lib

Gabby Query Protocol - library
0 stars 0 forks source link

Fix Validator signatures #23

Open terary opened 3 years ago

terary commented 3 years ago

Several validators implement:

export interface IValidator {
  (...args: any[]): TValidatorResponse;
}

IDE code assist picks-up the signature ...args:any which is not helpful.

Need to change signatures return TValidatorResponse and not implement interface.

This has already been done for package export validators.. The internal validators will also need to be revised.

package export validators

terary commented 2 years ago

Issue is a nice-have not a necessity. Leaving as open for now.