14 lines
172 B
TypeScript
14 lines
172 B
TypeScript
|
class MyBrand
|
||
|
{
|
||
|
private _a: number;
|
||
|
}
|
||
|
|
||
|
function test(strInput: string & MyBrand) {
|
||
|
switch(strInput)
|
||
|
{
|
||
|
case "a":
|
||
|
return 1;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|