File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change
1
+ import { Switch } from "./src" ;
2
+
1
3
export * 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
-
3
1
export * from "./ISwitch" ;
4
2
export * from "./Switch" ;
5
3
export * from "./TKnown" ;
6
4
export * 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 "../" ;
2
3
3
4
describe ( "Switch" , ( ) => {
4
5
it ( "should exist" , ( ) => {
You can’t perform that action at this time.
0 commit comments