Skip to content

Commit 9da9250

Browse files
committed
2.3.2-alpha.1
1 parent b566e8d commit 9da9250

File tree

8 files changed

+15
-13
lines changed

8 files changed

+15
-13
lines changed

typescript/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "covertable",
3-
"version": "2.3.2-alpha.0",
3+
"version": "2.3.2-alpha.1",
44
"description": "A flexible pairwise tool written in TypeScript",
55
"homepage": "https://github.com/walkframe/covertable",
66
"repository": {
@@ -71,5 +71,11 @@
7171
"dependencies": {
7272
"js-md5": "^0.7.3",
7373
"ts-node": "^10.9.2"
74+
},
75+
"exports": {
76+
"./utils/pict": {
77+
"import": "./dist/utils/pict.js",
78+
"types": "./dist/utils/pict.d.ts"
79+
}
7480
}
7581
}

typescript/src/criteria/greedy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {CriterionArgsType, IncompleteType, PairType} from '../types';
1+
import type {CriterionArgsType, IncompleteType, PairType} from '../types';
22
import {getCandidate, combinations, ascOrder, unique} from '../lib';
33

44
const getNumRemovablePairs = (indexes: Set<number>, incomplete: IncompleteType, length: number) => {

typescript/src/criteria/simple.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {CriterionArgsType, IncompleteType, PairType} from '../types';
1+
import type {CriterionArgsType, IncompleteType, PairType} from '../types';
22
import {getCandidate} from '../lib';
33

44
export default function* (

typescript/src/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @ts-ignore 2307
22
export { hex as md5 } from 'js-md5';
3-
import {
3+
import type {
44
FactorsType, Scalar, ParentsType, CandidateType, PairType,
55
} from './types';
66

typescript/src/sorters/hash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {md5} from '../lib';
2-
import {
2+
import type {
33
PairType,
44
SortArgsType,
55
} from '../types';

typescript/src/sorters/random.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {PairType, SortArgsType} from '../types';
1+
import type {PairType, SortArgsType} from '../types';
22

33
const comparer = (a: any, b: any) => {
44
return Math.random() > 0.5 ? 1 : -1;

typescript/src/utils/pict.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
type FilterRowType = {
2-
[key: string]: any;
3-
[index: number]: any;
4-
}
1+
import type { FilterRowType, FilterType } from '../types';
52

6-
type FilterType = (row: FilterRowType) => boolean;
73
type Token = {
84
type: string;
95
value: string;

0 commit comments

Comments
 (0)