wasm-bindgen/crates/webidl-tests/enums.webidl

20 lines
318 B
Plaintext
Vendored

enum ShapeType { "circle", "square" };
[Constructor(ShapeType kind)]
interface Shape {
static Shape triangle();
[Pure]
boolean isSquare();
[Pure]
boolean isCircle();
[Pure]
ShapeType getShape();
readonly attribute ShapeType? shapeTypeNone;
readonly attribute ShapeType? shapeTypeSome;
};