mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 12:44:31 +03:00
20 lines
318 B
Plaintext
Vendored
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;
|
|
};
|