@konoui/mjimage 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +148 -133
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -92,6 +92,7 @@ export declare abstract class Block {
|
|
|
92
92
|
private readonly _tiles;
|
|
93
93
|
private readonly _type;
|
|
94
94
|
constructor(tiles: readonly Tile[], type: BlockType);
|
|
95
|
+
static from(tiles: string): BlockHand | BlockOther | BlockChi | BlockPon | BlockAnKan | BlockDaiKan | BlockShoKan | BlockThree | BlockRun | BlockIsolated | BlockPair;
|
|
95
96
|
static deserialize(v: SerializedBlock): Block | BlockHand | BlockOther | BlockChi | BlockPon | BlockAnKan | BlockDaiKan | BlockShoKan | BlockThree | BlockRun | BlockIsolated | BlockPair;
|
|
96
97
|
serialize(): {
|
|
97
98
|
tiles: string;
|
|
@@ -150,11 +151,13 @@ export declare class BlockDaiKan extends Block {
|
|
|
150
151
|
|
|
151
152
|
export declare class BlockHand extends Block {
|
|
152
153
|
constructor(tiles: readonly Tile[]);
|
|
154
|
+
static from(s: string): BlockHand;
|
|
153
155
|
toString(): string;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
export declare class BlockIsolated extends Block {
|
|
157
159
|
constructor(tile: Tile);
|
|
160
|
+
static from(s: string): BlockIsolated;
|
|
158
161
|
toString(): string;
|
|
159
162
|
}
|
|
160
163
|
|
|
@@ -166,6 +169,7 @@ export declare class BlockOther extends Block {
|
|
|
166
169
|
export declare class BlockPair extends Block {
|
|
167
170
|
constructor(tile1: Tile, tile2: Tile);
|
|
168
171
|
toString(): string;
|
|
172
|
+
static from(s: string): BlockPair;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
export declare class BlockPon extends Block {
|
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export declare abstract class Block {
|
|
|
92
92
|
private readonly _tiles;
|
|
93
93
|
private readonly _type;
|
|
94
94
|
constructor(tiles: readonly Tile[], type: BlockType);
|
|
95
|
+
static from(tiles: string): BlockHand | BlockOther | BlockChi | BlockPon | BlockAnKan | BlockDaiKan | BlockShoKan | BlockThree | BlockRun | BlockIsolated | BlockPair;
|
|
95
96
|
static deserialize(v: SerializedBlock): Block | BlockHand | BlockOther | BlockChi | BlockPon | BlockAnKan | BlockDaiKan | BlockShoKan | BlockThree | BlockRun | BlockIsolated | BlockPair;
|
|
96
97
|
serialize(): {
|
|
97
98
|
tiles: string;
|
|
@@ -150,11 +151,13 @@ export declare class BlockDaiKan extends Block {
|
|
|
150
151
|
|
|
151
152
|
export declare class BlockHand extends Block {
|
|
152
153
|
constructor(tiles: readonly Tile[]);
|
|
154
|
+
static from(s: string): BlockHand;
|
|
153
155
|
toString(): string;
|
|
154
156
|
}
|
|
155
157
|
|
|
156
158
|
export declare class BlockIsolated extends Block {
|
|
157
159
|
constructor(tile: Tile);
|
|
160
|
+
static from(s: string): BlockIsolated;
|
|
158
161
|
toString(): string;
|
|
159
162
|
}
|
|
160
163
|
|
|
@@ -166,6 +169,7 @@ export declare class BlockOther extends Block {
|
|
|
166
169
|
export declare class BlockPair extends Block {
|
|
167
170
|
constructor(tile1: Tile, tile2: Tile);
|
|
168
171
|
toString(): string;
|
|
172
|
+
static from(s: string): BlockPair;
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
export declare class BlockPon extends Block {
|