Open Schahen opened 4 years ago
Following declarations are merge to a single function with union type as return
function mkdirSync(path: PathLike, options: MakeDirectoryOptions & { recursive: true; }): string; function mkdirSync(path: PathLike, options?: number | string | (MakeDirectoryOptions & { recursive?: false; }) | null): void; function mkdirSync(path: PathLike, options?: number | string | MakeDirectoryOptions | null): string | undefined;
Which, in turn, is resolved to dynamic. In fact we can treat any A | void as just A?
Following declarations are merge to a single function with union type as return
Which, in turn, is resolved to dynamic. In fact we can treat any A | void as just A?