TBPlusLogger
- The TBPlusLogger is mentioned in documentation Create a Logger Subclass
- import
TBPlusLogger is not possible from current package version "@tatrabanka/tatrapayplus-node": "^1.0.1". The TBPlusLogger is exported from file src/logger.ts, on other hand is marked as private and not include in dist.
This cause following error:
import { TBPlusLogger } from "@tatrabanka/tatrapayplus-node";
Module '"@tatrabanka/tatrapayplus-node"' declares 'TBPlusLogger' locally, but it is not exported.
- The possible solution is use custom TatraPayLogger using
ConstructorParameters<typeof TBPlusSDK>[3]
private logger;
constructor(clientId: string, clientSecret: string, sdkOptions?: {
mode?: GatewayMode;
scopes?: Scopes[];
baseUrl?: string;
createClientParams?: ClientOptions;
}, logger?: TBPlusLogger | undefined);
- Use correct example in doc
- Fix private import in source code
TBPlusLogger
TBPlusLoggeris not possible from current package version"@tatrabanka/tatrapayplus-node": "^1.0.1". TheTBPlusLoggeris exported from filesrc/logger.ts, on other hand is marked as private and not include indist.This cause following error:
ConstructorParameters<typeof TBPlusSDK>[3]