esverify icon indicating copy to clipboard operation
esverify copied to clipboard

TypeScript support

Open devdoomari3 opened this issue 6 years ago • 2 comments

I really like the concept, and thought it would be better to have a typescript-integration.

  • most typescript-codes already have types have types

    function max(a: number, b: number) {
      requires(typeof(a) === "number"); // not necessary
      requires(typeof(b) === "number"); // ...
      ensures(res => res >= a); 
    }
    
  • typescript has its own parsers you can use

  • typescript has a big collection of type-stubs for JS libraries (definitelytyped)

devdoomari3 avatar Dec 01 '18 08:12 devdoomari3

sorry your readme already have typescript-as-input-language.

devdoomari3 avatar Dec 01 '18 08:12 devdoomari3

Yes, this would definitely be useful. Also, it should not be too difficult to implement. (contributions welcome!)

levjj avatar Dec 01 '18 17:12 levjj