Skip to content

Commit c56828b

Browse files
Merge pull request #7 from WilliamRagstad/develop
2 parents 7cbe941 + c5d946b commit c56828b

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Focus on what you want to do, and the framework will take care of the rest.
3434

3535
## Documentation
3636

37-
> ### View the full [technical documentation](https://jsr.io/@knight/knight@3.0.0).
37+
> ### View the full [technical documentation](https://jsr.io/@knight/knight/doc).
3838
3939
## Getting Started
4040

example/controller/UserController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class UserController extends IController {
5757
try {
5858
throw new Error("This is a crash!");
5959
} catch (error) {
60-
let err = error instanceof Error ? error.message : String(error);
60+
const err = error instanceof Error ? error.message : String(error);
6161
this.log.warning(err);
6262
this.log.error(err);
6363
this.log.critical(err);

src/IController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Context, Void } from "./types.ts";
1+
import type { Context, Void } from "./types.ts";
22

33
export abstract class IController {
44
path = "/";

src/logger/ConsoleSink.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Sink } from "./Sink.ts";
22
import {
33
LoggingLevel,
4-
MessageTemplateParams,
5-
TimestampProvider,
4+
type MessageTemplateParams,
5+
type TimestampProvider,
66
} from "../types.ts";
77
import { defaultTimestamp } from "./defaults.ts";
88
import { TextFormatter } from "./TextFormatter.ts";
9-
import { Formatter } from "./Formatter.ts";
9+
import type { Formatter } from "./Formatter.ts";
1010

1111
/**
1212
* A console sink that writes to the terminal using a set of colors.

src/logger/Formatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LoggingLevel, MessageTemplateParams } from "../types.ts";
1+
import type { LoggingLevel, MessageTemplateParams } from "../types.ts";
22

33
export abstract class Formatter {
44
public abstract format(data: LoggingFormatterData): string;

src/logger/JSONFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Formatter, LoggingFormatterData } from "./Formatter.ts";
1+
import { Formatter, type LoggingFormatterData } from "./Formatter.ts";
22
import { compileMessage } from "./parser.ts";
33

44
export class JSONFormatter extends Formatter {

src/logger/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-explicit-any
2-
import { Sink } from "./Sink.ts";
2+
import type { Sink } from "./Sink.ts";
33
import { LoggingLevel } from "../types.ts";
44
import { templateMessageParser } from "./parser.ts";
55

src/logger/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-explicit-any
2-
import { MessageTemplateParams } from "../types.ts";
2+
import type { MessageTemplateParams } from "../types.ts";
33

44
/**
55
* Extract an object with key names from the template string and values from the params.

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// deno-lint-ignore-file no-explicit-any
2-
import { Constructor, Request, Response } from "./types.ts";
2+
import type { Constructor, Request, Response } from "./types.ts";
33

44
/**========================================================================
55
* Request helpers

0 commit comments

Comments
 (0)