requesterFn must be passed although it is not required
type:types
**Description**
I stumbled into a types misleading.
I've tried to create new Gitlab instance using @gitbeaker/core.
` const gitlabClient = new Gitlab({
token: secrets.accessToken,
host: secrets.host,
});`
Running this raised an error: "error":"requesterFn must be passed".
Looking at the instance required params for RootResourceOptions (which the Gitlab instance extends) shows no required ones.
`interface RootResourceOptions<C> {
requesterFn?: (resourceOptions: ResourceOptions) => RequesterType;
host?: string;
prefixUrl?: string;
camelize?: C;
queryTimeout?: number | null;
rateLimitDuration?: number;
sudo?: string | number;
profileToken?: string;
profileMode?: 'execution' | 'memory';
rateLimits?: RateLimitOptions;
agent?: Agent;
}`
1 条评论