michaelm

Results 13 issues of michaelm

# Bug Report ### 🔎 Search Terms implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.(7022) ###...

Has Repro

Fixes https://github.com/lodash/lodash/issues/5101

### 🔎 Search Terms isolated declarations, jsx, autofix ### 🕗 Version & Regression Information - This changed in commit or PR https://github.com/microsoft/TypeScript/pull/58260 ### ⏯ Playground Link _No response_ ### 💻...

Bug
Help Wanted

### 🔍 Search Terms enum, isolated declarations ### ✅ Viability Checklist - [X] This wouldn't be a breaking change in existing TypeScript/JavaScript code - [X] This wouldn't change the runtime...

Suggestion
Awaiting More Feedback

### 🔎 Search Terms transpiledeclaration type assertion as cast unknown promise async await ### 🕗 Version & Regression Information [5.5.0-dev.20240517](https://www.npmjs.com/package/typescript/v/5.5.0-dev.20240517) ### ⏯ Playground Link https://www.typescriptlang.org/dev/bug-workbench/?target=7&ts=5.5.0-dev.20240502#code/PTAEAEGcBcCcEsDG0Bco4FcCmAoEEATLRAGwENYzp4B7AOzU13ygAsaB3AUQFt5o8YNp179oWAgDF4JLGjIA6AguiQcgiADMZWOmR5zQi1TiwAPAA41Y0I5ACedRKE0Yn1ei5o0AFAEpQAG8cUFBYLGgMWDpQHzIOMn5QABYAJgCySFA6DB4AIyxYAG4cAF8cIA ### 💻 Code ```ts repro...

Has Repro
Domain: ts.transpileDeclaration
Domain: Isolated Declarations

### 🔎 Search Terms transpiledeclaration type generic constraint unknown self referencing union ### 🕗 Version & Regression Information [5.5.0-dev.20240519](https://www.npmjs.com/package/typescript/v/5.5.0-dev.20240519) ### ⏯ Playground Link https://www.typescriptlang.org/dev/bug-workbench/?target=7&ts=5.5.0-dev.20240519&ssl=1&ssc=1&pln=3&pc=1#code/PTAEAEGcBcCcEsDG0Bco4FcCmAoEEATLRAGwENYzp4B7AOzU13ygAsaB3AUQFt5o8YNp179oWAgDF4JLGjIA6AguiQcgiADMZWOmR5zQi1TiwAPAA41Y0UInoxQNAEYArYrYC8oAN45QoJo0NGgAPAAqoObidASQoADKWNARAHygAD6gANoAuqkAFACUaABuNPAEoJ7pPgC+ADQ4dQDcOEA ### 💻 Code ```ts // @strict:...

### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: no - Breaking change (forces users to change their own code or config): yes...

Tested version: 0.23.0 ```ts import {} from 'foo'; declare module 'foo' { interface Foo {} const foo = 42; } ``` ``` require('oxc-transform').isolatedDeclaration('hello.ts', ` import "foo"; declare module "foo" {...

C-bug

Fixes https://github.com/oxc-project/oxc/issues/4016. To fully comply with the reference behavior of the TypeScript compiler, we need to be able to detect the case when `Symbol` or `globalThis.Symbol` do not refer to...

A-isolated-declarations

https://www.typescriptlang.org/tsconfig/#declarationMap > Generates a source map for .d.ts files which map back to the original .ts source file. This will allow editors such as VS Code to go to the...

C-enhancement