Ryan Cavanaugh
Ryan Cavanaugh
We [tried our best to tell people not to do this](https://github.com/microsoft/TypeScript/issues/13298#issuecomment-482331561), but some folks are very determined to do dangerous things. See also https://github.com/microsoft/TypeScript/issues/13298#issuecomment-468481350 https://github.com/microsoft/TypeScript/issues/13298#issuecomment-493583406
We need a concrete way to repro this
FWIW there's not necessarily one file. In some cases we collate the documentation from multiple declarations.
@typescript-bot test it
> I expected require() to be typechecked in .ts files because it's typechecked in .js files. Only `import i = require(` is supported in TS > I expected imports of...
None of the things you've listed are first-class concepts in TS -- basically, when we're running, it's all just files and/or ambient module declarations. Formal definitions of what it means...
Please use the GitHub reactions feature rather than standalone upvote comments. Thanks!
Write this instead ``` ts interface ExampleArgs { firstArg: string; otherArg: number; } export default class Example { constructor(kwargs:ExampleArgs) { return Object.assign(this, kwargs); } } export interface Example extends ExampleArgs...
Accepting PRs to implement `constructor(public {name1, name2})` forms (i.e. no `public` / `private` etc _inside_ the `{}`s).
> The files are not [included](https://www.typescriptlang.org/tsconfig/#files) (or [referenced](https://www.typescriptlang.org/tsconfig/#references)) in src/tsconfig.json so they should not be rebuild (but only .d.ts files consumed) You need to use project references if you want...