Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
JAForbes committed Feb 10, 2024
1 parent 7598445 commit 17859e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-explicit-any */

import { safe } from "./match.js"
import * as ParseUrl from "./parseUrl.js"

export type Either<L, R> =
| { type: 'Either', tag: 'Left', value: L }
Expand Down Expand Up @@ -116,7 +116,7 @@ export function type<N extends string, D extends Definition>(type: N, routes: D)
let error: any = null;
for (const [tag, patterns] of Object.keys(api.patterns as string[])) {
for( const pattern of patterns) {
const result = safe(url,pattern)
const result = ParseUrl.safe(url,pattern)
if (result.tag === 'Left') {
if ( error == null ) {
error = result
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions lib/scratch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Components : Components<Example> = {
Login: LoginComp
}

let m: any;
m.route(
document.body
,'/'
Expand Down

0 comments on commit 17859e3

Please sign in to comment.