Skip to content

Commit

Permalink
fix: Add dry run publish on CI and fix slow type errors (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed May 12, 2024
1 parent 643d516 commit c75a911
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ jobs:
name: mini-fn
verbose: true
fail_ci_if_error: false

- name: Dry run publish
run: deno publish --dry-run
2 changes: 1 addition & 1 deletion src/binary-heap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const getMin = <S, T>(
export const intoItems = <T>(heap: BinaryHeapInner<T>): readonly T[] =>
heap.items;

const parentOf = (index: number) => Math.floor((index - 1) / 2);
const parentOf = (index: number): number => Math.floor((index - 1) / 2);
const leftChildOf = (index: number) => 2 * index + 1;
const rightChildOf = (index: number) => 2 * index + 2;

Expand Down
2 changes: 1 addition & 1 deletion src/mut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export type Thread<S> = { [threadNominal]: S };
const wrapThread = <S, A>(dict: Map<MutRef<S, A>, MutVar<A>>): Thread<S> =>
dict as unknown as Thread<S>;

const newThreadVar = <A>(value: A) => {
const newThreadVar = <A>(value: A): <S>(thread: Thread<S>) => MutRef<S, A> => {
const newRefSym = Symbol();
return <S>(thread: Thread<S>): MutRef<S, A> => {
const newRef = newRefSym as unknown as MutRef<S, A>;
Expand Down

0 comments on commit c75a911

Please sign in to comment.