mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-28 04:22:38 +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();
|
||
|
};
|