Gabriela Araujo Britto

Results 19 issues of Gabriela Araujo Britto

Fixes #48134. There's an explanation of why the bug happens in the original issue: https://github.com/microsoft/TypeScript/issues/48134#issuecomment-1179333238. This PR implements the fix suggested in https://github.com/microsoft/TypeScript/issues/48134#issuecomment-1180746082.

Author: Team
For Milestone Bug

On the PR https://github.com/DefinitelyTyped/DefinitelyTyped/pull/65317, [this comment](https://github.com/DefinitelyTyped/DefinitelyTyped/pull/65317#issuecomment-1526101143) by the bot refers to a different package that is not the one affected by the PR.

When we inspect a declaration file, we try to decide if it uses `export =` syntax or named/default ("normal") exports. To do this, we were looking for export constructs in...

This creates a pipeline that runs dtslint-runner using a PR branch of dts-critic.

We should compare the types of what is exported in the declaration file against the inferred types of what is exported in the JS source. This most likely should be...

When we compare the exported properties of a declaration and JS source, we ignore the `prototype` property. This means that if the module is a class, we don't compare the...

We should support running dts-critic on Windows. So far dts-critic v3 was not tested on Windows, and the `child_process` command execution calls (like `execFileSync` and `spawnSync`) don't work. For example,...

Fixes #33912. Fixes #33014. ## Motivation Sometimes we want to write functions whose return type is picked between different options, depending on the type of a parameter. For instance: ```ts...

Author: Team
For Uncommitted Bug

A version of #56941 without any of the extra stuff for checking conditional expressions.

Author: Team
For Uncommitted Bug

Fixes #33014. Fixes #33912. This PR brings back conditional and indexed access return type narrowing from #56941, but with a few updates. The main motivation behind those updates is described...

Author: Team
For Uncommitted Bug