The README specifies that setting metaField, requestField, and responseField to null merges those fields into the root namespace, but the TypeScript types are specified without null as a possible value for those fields, requiring // @ts-ignore comments to set them to null:
export interface BaseErrorLoggerOptions {
...
metaField?: string; // can only be a string or undefined, cannot be null
requestField?: string;
responseField?: string;
...
}
Since null and undefined are interpreted differently for these fields, the correct types are:
The README specifies that setting
metaField
,requestField
, andresponseField
tonull
merges those fields into the root namespace, but the TypeScript types are specified withoutnull
as a possible value for those fields, requiring// @ts-ignore
comments to set them tonull
:Since
null
andundefined
are interpreted differently for these fields, the correct types are: