Comments (4)
TypeScript has no support for nominal types (user-defined types extending base primitive types such as number) and without this hack it treats all arguments as having type number
and not (int
or float
)
which is inconvenient for the end-user.
this is one of the most anticipated features in TS microsoft/TypeScript#202
I would love to explore first-class support for TS in CLEO in the future. If, for time being, someone can provide a definition that would both:
- make parameters display in autocomplete as either
int
orfloat
- don't break TS compilation
I will happily update autogenerate .d.ts
from cleo-redux.
TypeScript has no support for nominal types (user-defined types extending base primitive types such as number) and without this hack it treats all arguments as having type
number
and not (int
orfloat
)which is inconvenient for the end-user.
this is one of the most anticipated features in TS microsoft/TypeScript#202
I would love to explore first-class support for TS in CLEO in the future. If, for time being, someone can provide a definition that would both:
- make parameters display in autocomplete as either
int
orfloat
- don't break TS compilation
I will happily update autogenerate .d.ts
I replaced int with int | number and float with float | number, maybe this?
https://github.com/BountyBomj/a/blob/main/index.d.ts
from cleo-redux.
looks like
/** Integer value */
type int = number & { _int: never } | number;
/** Floating-point value */
type float = number & { _float: never } | number;
does the trick. VS Code shows params as int
or float
yet number
type is perfectly assignable
from cleo-redux.
1.0.5 supports typescript
from cleo-redux.
Related Issues (20)
- CLEO commands with multiple outputs don't work correctly HOT 2
- [Bully] `Clothing.BuildPlayer()` crashes the game HOT 1
- support "long strings" in III and VC if CLEO library is present HOT 1
- GTA 3 Definitive Edition car spawning freeze HOT 4
- GTA VC Definitive Edition CRASHES
- For Installer (UAL Filename) HOT 8
- Is it possible to restore the original music using CLEO Redux in San Andreas Definitive Edition
- [STEAM] GTA Trilogy - Error Cleo Redux is and Ultimate ASI Loader HOT 2
- [Classic: San Andreas] - Events.cleo Plugin Conflict with VehFuncs HOT 14
- Incompatible with new GTA Vice City DE patch 1.0.17.39540 HOT 2
- [RGL] 1.1.2 Crashes San Andreas Definitive Edition when loading a Save. HOT 8
- CLEO Redux doesn't work for ReVC OpenGL x64 build and Re3 OpenGL x64 build HOT 1
- Raknet HOT 1
- Heli.Create should return type Heli HOT 3
- Type "label" in opcodes input HOT 1
- stack trace is wrong in typescript files
- fxt support in VC: DE HOT 1
- conversion error in Memory.Fn.ThiscallU8 HOT 2
- Fx.DrawCorona bug HOT 4
- Text operations bug in 1.2.1 HOT 7
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 cleo-redux.