首页 > 其他分享 >[TypesScript V4] ${X | Y} - ${W | Z}

[TypesScript V4] ${X | Y} - ${W | Z}

时间:2022-08-22 16:14:47浏览次数:63  
标签:TypesScript right Bottom V4 Corner left

type Corner = `${'top' | 'bottom'} - ${'left' | 'right'}`

type Corner = Capitalize<`${'top' | 'bottom'} - ${'left' | 'right'}`>
// "Top - left" | "Top - right" | "Bottom - left" | "Bottom - right"

 

标签:TypesScript,right,Bottom,V4,Corner,left
From: https://www.cnblogs.com/Answer1215/p/16613132.html

相关文章