Typescript def issue: `harperDbConfigOptions` does not reflect optional configs
Opened this issue · 0 comments
zackdotcomputer commented
In the code, it is defined as:
export interface harperDbConfigOptions {
harperHost: string;
username: string;
password: string;
token: string;
schema: string;
}
This means all fields are required. However the website says that schema is optional and only one of {username + password} or {token} need to be provided. Right now, you get a typescript error if you try to omit any field.