Skip to content

Commit 5d3df58

Browse files
committed
updates
1 parent e5023f8 commit 5d3df58

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/token/const.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ import { type TWhiteSpace, WhiteSpace } from './internal/char.ts'
4242
type TTakeConst<Const extends string, Input extends string> = (
4343
TTake<[Const], Input>
4444
)
45-
function TakeConst<Const extends string, Input extends string>
46-
(input: Input, const_: Const):
47-
TTakeConst<Const, Input> {
45+
function TakeConst<Const extends string, Input extends string>(const_: Const, input: Input): TTakeConst<Const, Input> {
4846
return Take([const_], input) as never
4947
}
5048
// ------------------------------------------------------------------
@@ -60,9 +58,7 @@ export type TConst<Const extends string, Input extends string> = (
6058
) : never
6159
)
6260
/** Matches if next is the given Const value */
63-
export function Const<Const extends string, Input extends string>
64-
(const_: Const, input: Input):
65-
TConst<Const, Input> {
61+
export function Const<Const extends string, Input extends string>(const_: Const, input: Input): TConst<Const, Input> {
6662
return (
6763
Guard.IsEqual(const_, '') ? ['', input] : (
6864
const_.startsWith(NewLine) ? TakeConst(const_, TrimWhitespace(input)) :

0 commit comments

Comments
 (0)