Skip to content

Commit

Permalink
add extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bessonov committed Apr 18, 2024
1 parent e2e44cd commit e9d74ec
Show file tree
Hide file tree
Showing 87 changed files with 190 additions and 190 deletions.
4 changes: 2 additions & 2 deletions dist/Router.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Matched, type Matcher } from './matchers';
import { type MatchResult, type MatchResultAny } from './matchers/MatchResult';
import { type Matched, type Matcher } from './matchers/index.js';
import { type MatchResult, type MatchResultAny } from './matchers/MatchResult.js';
interface HandlerParams<MR extends MatchResultAny, D> {
match: Matched<MR>;
data: D;
Expand Down
4 changes: 2 additions & 2 deletions dist/Router.js

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

2 changes: 1 addition & 1 deletion dist/Router.js.map

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

8 changes: 4 additions & 4 deletions dist/__tests__/Router.test.js

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

2 changes: 1 addition & 1 deletion dist/__tests__/Router.test.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/examples/micro.js

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

2 changes: 1 addition & 1 deletion dist/examples/micro.js.map

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

6 changes: 3 additions & 3 deletions dist/examples/node.js

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

2 changes: 1 addition & 1 deletion dist/examples/node.js.map

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

10 changes: 5 additions & 5 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from './matchers';
export * from './middlewares';
export { type Handler, type Route, type MatchedHandler, Router, } from './Router';
export { type ServerRequest, toServerRequest, } from './node/ServerRequest';
export { NodeHttpRouter, type NodeHttpRouterParams, } from './node/NodeHttpRouter';
export * from './matchers/index.js';
export * from './middlewares/index.js';
export { type Handler, type Route, type MatchedHandler, Router, } from './Router.js';
export { type ServerRequest, toServerRequest, } from './node/ServerRequest.js';
export { NodeHttpRouter, type NodeHttpRouterParams, } from './node/NodeHttpRouter.js';
10 changes: 5 additions & 5 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

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

4 changes: 2 additions & 2 deletions dist/matchers/AndMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Matcher } from './Matcher';
import { type MatchResult, type MatchResultAny, type Matched } from './MatchResult';
import type { Matcher } from './Matcher.js';
import { type MatchResult, type MatchResultAny, type Matched } from './MatchResult.js';
export type AndMatcherResult<MR1 extends MatchResultAny | never = never, MR2 extends MatchResultAny | never = never, MR3 extends MatchResultAny | never = never, MR4 extends MatchResultAny | never = never, MR5 extends MatchResultAny | never = never> = MatchResult<{
and: [
MR1 extends MatchResultAny ? Matched<MR1> : Partial<void>,
Expand Down
2 changes: 1 addition & 1 deletion dist/matchers/AndMatcher.js

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

2 changes: 1 addition & 1 deletion dist/matchers/AndMatcher.js.map

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

4 changes: 2 additions & 2 deletions dist/matchers/BooleanMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MatchResult } from './MatchResult';
import type { Matcher } from './Matcher';
import type { MatchResult } from './MatchResult.js';
import type { Matcher } from './Matcher.js';
export declare class BooleanMatcher<T extends boolean> implements Matcher<MatchResult<T>, void> {
private value;
constructor(value: T);
Expand Down
8 changes: 4 additions & 4 deletions dist/matchers/EndpointMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Matcher } from './Matcher';
import type { MatchResult } from './MatchResult';
import { type Method } from './MethodMatcher';
import { type RegExpExecGroupArray } from './RegExpUrlMatcher';
import type { Matcher } from './Matcher.js';
import type { MatchResult } from './MatchResult.js';
import { type Method } from './MethodMatcher.js';
import { type RegExpExecGroupArray } from './RegExpUrlMatcher.js';
export interface EndpointMatcherInput {
req: {
url: string;
Expand Down
6 changes: 3 additions & 3 deletions dist/matchers/EndpointMatcher.js

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

2 changes: 1 addition & 1 deletion dist/matchers/EndpointMatcher.js.map

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

4 changes: 2 additions & 2 deletions dist/matchers/ExactQueryMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Matcher } from './Matcher';
import type { MatchResult } from './MatchResult';
import type { Matcher } from './Matcher.js';
import type { MatchResult } from './MatchResult.js';
export interface ExactQueryMatcherInput {
req: {
url: string;
Expand Down
4 changes: 2 additions & 2 deletions dist/matchers/ExactUrlPathnameMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Matcher } from './Matcher';
import type { MatchResult } from './MatchResult';
import type { Matcher } from './Matcher.js';
import type { MatchResult } from './MatchResult.js';
export interface ExactUrlPathnameMatcherInput {
req: {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/matchers/Matcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MatchResultAny } from './MatchResult';
import type { MatchResultAny } from './MatchResult.js';
export type ExtractMatchResult<M> = M extends Matcher<infer MR, any> ? MR : never;
export interface Matcher<T extends MatchResultAny, P> {
match(params: P): T;
Expand Down
4 changes: 2 additions & 2 deletions dist/matchers/MethodMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Matcher } from './Matcher';
import type { MatchResult } from './MatchResult';
import type { Matcher } from './Matcher.js';
import type { MatchResult } from './MatchResult.js';
declare const validMethods: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"];
export interface MethodMatcherInput {
req: {
Expand Down
4 changes: 2 additions & 2 deletions dist/matchers/OrMatcher.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Matcher } from './Matcher';
import { type MatchResult, type MatchResultAny, type Matched } from './MatchResult';
import type { Matcher } from './Matcher.js';
import { type MatchResult, type MatchResultAny, type Matched } from './MatchResult.js';
export type OrMatcherResult<MR1 extends MatchResultAny | never = never, MR2 extends MatchResultAny | never = never, MR3 extends MatchResultAny | never = never, MR4 extends MatchResultAny | never = never, MR5 extends MatchResultAny | never = never> = MatchResult<{
or: [
MR1 extends MatchResultAny ? Matched<MR1> : Partial<void>,
Expand Down
2 changes: 1 addition & 1 deletion dist/matchers/OrMatcher.js

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

Loading

0 comments on commit e9d74ec

Please sign in to comment.