Re: [heycam/webidl] Consider syntactic changes to WebIDL to make it more "JavaScript-y" (#485)

I think we could keep `interface` since it’s a reserved keyword in JavaScript and is used in TypeScript to denote class shapes:
```ts
// X.ts
export default interface X {
 public y: Type;
}

// XImpl.ts
import X from './X.ts';
class XImpl extends X {
 private #y: Type;
 constructor () {
  throw new Error();
 }

 get y(): {
  return this.#y;
 }

 set y(arg: Type): {
  this.#y = arg;
 }
}

export {
 XImpl as implementation
};
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/485#issuecomment-489432684

Received on Sunday, 5 May 2019 14:41:49 UTC