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

TypeScript target #51

Open
14 tasks
disjukr opened this issue Aug 16, 2016 · 2 comments
Open
14 tasks

TypeScript target #51

disjukr opened this issue Aug 16, 2016 · 2 comments
Labels
cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:typescript typ:enhance Type: Enhancement/new feature

Comments

@disjukr
Copy link

disjukr commented Aug 16, 2016

  • unboxed type
  • builtin types
    • runtime
      • Map
      • Set
      • List
  • type alias
  • enum type
  • record type
  • union type
  • service client
  • type definition
    • flow
    • typescript
@dahlia dahlia changed the title Javascript support JavaScript target Aug 16, 2016
@dahlia dahlia added the typ:enhance Type: Enhancement/new feature label Aug 16, 2016
@dahlia
Copy link
Member

dahlia commented Dec 1, 2016

Type definitions can be separately generated through custom libdef (for Flow) or .d.ts (for Typescript).

@disjukr
Copy link
Author

disjukr commented Dec 16, 2016

wip

class Offset { // float64
    constructor(value) {
        this.value = value;
    }
    toJSON() {
        return this.value.toJSON ? this.value.toJSON() : this.value;
    }
    static fromJSON(jsonObject) {
        return new Offset(jsonObject);
    }
    eq(other) {
        return other instanceof Offset &&
            this.value === other.value;
    }
}

class Payload {
    constructor({left}) {
        this.left = left;
    }
    toJSON() {
        return {
            _type: 'payload',
            left: this.left.toJSON()
        };
    }
    static fromJSON() {
        //
    }
}



// tood
class Map {
    constructor() {
        this.
    }
    get(key) {
        //
    }
    set(key, value) {
        //
    }
    has() {
        //
    }
}

@dahlia dahlia added the target label May 8, 2017
@Kroisse Kroisse changed the title JavaScript target Typescript target Jul 21, 2017
@Kroisse Kroisse changed the title Typescript target TypeScript target Jul 21, 2017
@dahlia dahlia added cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:typescript and removed target labels Aug 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) target:typescript typ:enhance Type: Enhancement/new feature
Projects
None yet
Development

No branches or pull requests

4 participants