Skip to content

Commit

Permalink
2.3.2-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
righ committed Aug 7, 2024
1 parent b566e8d commit 9da9250
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "covertable",
"version": "2.3.2-alpha.0",
"version": "2.3.2-alpha.1",
"description": "A flexible pairwise tool written in TypeScript",
"homepage": "https://github.com/walkframe/covertable",
"repository": {
Expand Down Expand Up @@ -71,5 +71,11 @@
"dependencies": {
"js-md5": "^0.7.3",
"ts-node": "^10.9.2"
},
"exports": {
"./utils/pict": {
"import": "./dist/utils/pict.js",
"types": "./dist/utils/pict.d.ts"
}
}
}
2 changes: 1 addition & 1 deletion typescript/src/criteria/greedy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CriterionArgsType, IncompleteType, PairType} from '../types';
import type {CriterionArgsType, IncompleteType, PairType} from '../types';
import {getCandidate, combinations, ascOrder, unique} from '../lib';

const getNumRemovablePairs = (indexes: Set<number>, incomplete: IncompleteType, length: number) => {
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/criteria/simple.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CriterionArgsType, IncompleteType, PairType} from '../types';
import type {CriterionArgsType, IncompleteType, PairType} from '../types';
import {getCandidate} from '../lib';

export default function* (
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/lib.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-ignore 2307
export { hex as md5 } from 'js-md5';
import {
import type {
FactorsType, Scalar, ParentsType, CandidateType, PairType,
} from './types';

Expand Down
2 changes: 1 addition & 1 deletion typescript/src/sorters/hash.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {md5} from '../lib';
import {
import type {
PairType,
SortArgsType,
} from '../types';
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/sorters/random.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {PairType, SortArgsType} from '../types';
import type {PairType, SortArgsType} from '../types';

const comparer = (a: any, b: any) => {
return Math.random() > 0.5 ? 1 : -1;
Expand Down
6 changes: 1 addition & 5 deletions typescript/src/utils/pict.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
type FilterRowType = {
[key: string]: any;
[index: number]: any;
}
import type { FilterRowType, FilterType } from '../types';

type FilterType = (row: FilterRowType) => boolean;
type Token = {
type: string;
value: string;
Expand Down

0 comments on commit 9da9250

Please sign in to comment.