File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Switch } from "./src" ;
2+
13export * from "./src" ;
4+
5+ /**
6+ * Pointer interface for lifting value provided as an argument to Switch.
7+ */
8+ export default function < T , K > ( x : T ) {
9+ return Switch . for < T , K > ( x ) ;
10+ }
Original file line number Diff line number Diff line change 1- import { Switch } from "./Switch" ;
2-
31export * from "./ISwitch" ;
42export * from "./Switch" ;
53export * from "./TKnown" ;
64export * from "./TPredicateFunction" ;
7-
8- /**
9- * Pointer interface for lifting value provided as an argument to Switch.
10- */
11- export default function < T , K > ( x : T ) {
12- return Switch . for < T , K > ( x ) ;
13- }
Original file line number Diff line number Diff line change 1- import match , { Switch } from "../src" ;
1+ import { Switch } from "../src" ;
2+ import match from "../" ;
23
34describe ( "Switch" , ( ) => {
45 it ( "should exist" , ( ) => {
You can’t perform that action at this time.
0 commit comments