Comments (4)
@PatrickJS I don't quite follow the suggestion. Is this something that can be handled by transpilation (as opposed to changing TypeScript's type checker)? (I'm hoping so, given your link to actual TS code doing something similar.) If so, could you give an example of what you have in mind for Civet source and TS output?
from civet.
yeah, basically compile to the workaround types but is probably a lot of work
from civet.
Could you show one example of what you'd like to write and what it would transpile to? Currently I see examples of each, but they don't match, so it's difficult to understand the goal.
from civet.
yeah I guess the proposed syntax in the ts thread in wasn't exactly finalized and looking it over and the code I guess it was more of if we had this then the code can be refactored. So nothing actionable, my bad. I'll close the issue 👍
from civet.
Related Issues (20)
- Pipeline placeholder ^^ or %% or `|x>` HOT 4
- Need full example setup civet on sveltekit HOT 2
- Regression in 0.7.11: No more implicit return in synchronous function that creates a Promise<void> HOT 1
- Pipe after implicit object is incorrect
- Trailing `or` on newline after callback function in implicit application parses as nested implicit function call instead of method body HOT 1
- bun + jsx syntax HOT 3
- vscode ext, add option to disable diagnostics HOT 1
- import extension gets rewritten but wrong HOT 1
- `[…asyncIterator]` sugar for `Array.fromAsync`? HOT 5
- `civet *.civet` file execution bug when reading config from any file
- import vs multiplication
- Indented chained ternarys fail to parse
- Array destructuring into @vars doesn't declare temporary variables HOT 1
- Problems with `node --test`s written in Civet (or possibly wider issue with ESM reading config)
- Generate normal `.d.ts` extension HOT 2
- Correctly load civet config file inner a workspace
- Solid Start file router
- Support for neovim/vim HOT 2
- `autoConst` not producing `const` HOT 1
- Nested type annotation fails to parse HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from civet.