mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-24 10:33:34 +03:00
16 lines
222 B
Plaintext
16 lines
222 B
Plaintext
|
enum ShapeType { "circle", "square" };
|
||
|
|
||
|
[Constructor(ShapeType kind)]
|
||
|
interface Shape {
|
||
|
static Shape triangle();
|
||
|
|
||
|
[Pure]
|
||
|
boolean isSquare();
|
||
|
|
||
|
[Pure]
|
||
|
boolean isCircle();
|
||
|
|
||
|
[Pure]
|
||
|
ShapeType getShape();
|
||
|
};
|