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

Typed arrays should be classes. #3506

Closed
ghost opened this issue Jun 14, 2015 · 3 comments
Closed

Typed arrays should be classes. #3506

ghost opened this issue Jun 14, 2015 · 3 comments
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created

Comments

@ghost
Copy link

ghost commented Jun 14, 2015

Hi guys,

The following code is valid in JavaScript.

class Matrix extends Float32Array {
    constructor() {
        super(9);
    }
}

Unfortunately that isn't possible to do in TypeScript at the moment because all of the typed arrays appear to be interfaces, and there are also some weird interfaces such as Float32ArrayConstructor floating around which confuse matters.

@kitsonk
Copy link
Contributor

kitsonk commented Jun 14, 2015

Dup of #1168

@ghost
Copy link
Author

ghost commented Jun 14, 2015

In that case, consider this issue a friendly reminder that the seven month old bug still exists :)

@DanielRosenwasser
Copy link
Member

It's on the roadmap for TypeScript 1.6.

@DanielRosenwasser DanielRosenwasser added Duplicate An existing issue was already created Bug A bug in TypeScript labels Jun 15, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants