coffeescript
coffeescript copied to clipboard
Unfancy JavaScript
fix https://github.com/jashkenas/coffeescript/issues/5401 ``` ❯ cat test.coffee #!/usr/bin/env coffee console.log 1 ❯ cat package.json { "type": "module" } ❯ node -v v18.7.0 ❯ node --loader "../loader.mjs" test.coffee (node:28894) ExperimentalWarning: Custom ESM...
This is a feature request. I think it's time to revisit getters and setters, originally discussed in #4915, and explicitly unsupported on https://coffeescript.org/#unsupported-get-set ### Input Code ```coffee class Foo get...
### Input Code For example, if you want to output usable JSDoc to integrate with TypeScript: ```coffee ###* # @param a {string} ### method1 = (a) -> ###* # @param...
Similar to how the CoffeeScript compiler outputs [JSX](https://coffeescript.org/#breaking-changes-jsx-and-the-less-than-and-greater-than-operators), it could output TypeScript source code. This could then be piped to the TypeScript compiler (or Babel’s TypeScript plugin) for type checking...
Create a syntax (I'm thinking in `for*`) for allowing comprehensions to produce an Iterator instead of a list, similar to what python does. This would help when the goal is...
This is a portion of my `typescript` branch that I spent the last few days working on, implementing the plan laid out in https://github.com/jashkenas/coffeescript/issues/5377#issuecomment-1019537087 : **push the `var` declaration of...
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#casts ```coffee b = ###* @type {B} ### (a) ``` Actual: ```js // Generated by CoffeeScript 2.6.1 var b; b = /** @type {B} */a; ``` Expected: ```js // Generated...
When trying to add a JSDoc comment to an object that is an argument to a function the comment gets moved to the first key of the object. I would...
Instead of a global `referencedVars` option that is computed at the lexer level (via all IDENTIFIER tokens), recurse through the AST to mark each scope with all variables used within...
```coffee -> #@ts-ignore subsystem.clearCache?() ``` Actual ```js // Generated by CoffeeScript 2.6.1 (function() { return typeof subsystem.clearCache === "function" ? subsystem.clearCache() : void 0; }); ``` Expected ```js // Generated...