Skip to content

Commit 33f2f3c

Browse files
committed
Improve tree-shakeability
1 parent 7571a2f commit 33f2f3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/combinators.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import either, { type Either } from '@matt.kantor/either'
1+
import type { Either } from '@matt.kantor/either'
2+
import * as either from '@matt.kantor/either'
23
import { nothing } from './constructors.js'
34
import type {
45
InvalidInputError,

src/constructors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import either from '@matt.kantor/either'
1+
import * as either from '@matt.kantor/either'
22
import type { Parser, ParserWhichAlwaysSucceeds } from './parser.js'
33

44
export const anySingleCharacter: Parser<string> = input => {

0 commit comments

Comments
 (0)