mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-17 18:50:51 +00: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();
|
||
|
};
|