Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Complex type system #16

Open
Vurv78 opened this issue Feb 28, 2022 · 0 comments
Open

[feature] Complex type system #16

Vurv78 opened this issue Feb 28, 2022 · 0 comments
Labels
P-Medium Priority: Medium T-Feature Feature request X-Typescript Parity with Typescript

Comments

@Vurv78
Copy link
Owner

Vurv78 commented Feb 28, 2022

Is your feature request related to a problem? Please describe.
Objects don't exist in the type system, and classes cannot exist without a complex type system.
Right now types are strings. Either the "typename", or "function(ptype, ptype2):ret" for function signatures.

Describe the solution you'd like
The type class to have a bunch of methods and fields to define whether it is variadic, an alias, an array (xyz[]) type, optional / nullable, an enum type (number | string) or a raw enum "foo" | "bar".

This would be an internal change, so it wouldn't add something like this:

type foo = number;
type bar = foo | string;

Additional context
This is necessary to resolve #13

@Vurv78 Vurv78 added T-Feature Feature request X-Typescript Parity with Typescript P-Medium Priority: Medium labels Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-Medium Priority: Medium T-Feature Feature request X-Typescript Parity with Typescript
Projects
None yet
Development

No branches or pull requests

1 participant