Last active
September 4, 2020 02:24
-
-
Save hachi8833/a5832daa8c31be9f290ca4734075f297 to your computer and use it in GitHub Desktop.
Sample TS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Digits = /* 上記参照 */; | |
type DigitsStr = `${Digits}`; | |
type Tile<T extends unknown[], N extends Digits | DigitsStr | 10 | '10'> = [ | |
[], | |
[...T], | |
[...T, ...T], | |
[...T, ...T, ...T], | |
[...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T], | |
[...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T, ...T], | |
][N]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment