Typescript: after the transpilation, wrong retun type
Advertisements Why my index.ts export const isNullOrUndefined = (value: any): value is null | undefined => { return value === null || value === undefined; }; is transpiled into index.d.ts (only value is null) export declare const isNullOrUndefined: (value: any) => value is null; instead of (value is null | undefined) export declare const isNullOrUndefined:… Read More Typescript: after the transpilation, wrong retun type