File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
src/features/cseMachine/utils Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
// alternate representations of data types
2
2
3
3
import { Data } from '../CseMachineTypes' ;
4
-
5
- /** Returns `true` if `data` is a scheme number
6
- * TODO: make this less hacky.
7
- */
8
- function isSchemeNumber ( data : Data ) : boolean {
9
- return ( data as any ) ?. numberType !== undefined ;
10
- }
4
+ import { isSchemeNumber } from './scheme' ;
11
5
12
6
// used to define custom primitives from alternate languages.
13
7
// MAKE SURE the custom primitive has a toString() method!
Original file line number Diff line number Diff line change
1
+ import { Data } from '../CseMachineTypes' ;
2
+
3
+ /** Returns `true` if `data` is a scheme number
4
+ * TODO: make this less hacky.
5
+ */
6
+ export function isSchemeNumber ( data : Data ) : boolean {
7
+ return ( data as any ) ?. numberType !== undefined ;
8
+ }
You can’t perform that action at this time.
0 commit comments