Skip to content

Commit

Permalink
refactor: remove deprecated Deno.Reader
Browse files Browse the repository at this point in the history
modify Makefile
  • Loading branch information
dxdye committed Nov 10, 2024
1 parent fefeef8 commit 7c94514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
FILES_TO_FORMAT = ./src ./test ./deps.ts ./mod.ts ./version.ts

build:
@deno run --reload mod.ts
@deno run --allow-import --reload mod.ts

ci:
@make fmt-check
Expand Down
5 changes: 2 additions & 3 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ type Parser = (str: string) => any;
type MultipartValueSingle =
| Blob
| Uint8Array
| Deno.Reader
| string
| boolean
| number;
Expand Down Expand Up @@ -221,7 +220,7 @@ export class Test extends SuperRequest {
#urlSetupPromise: Promise<void>;

public app: string | ListenerLike | ServerLike;
public url!: string;
public override url!: string;

constructor(
app: string | ListenerLike | ServerLike,
Expand Down Expand Up @@ -536,7 +535,7 @@ export class Test extends SuperRequest {
* @returns {Test} for chaining
* @public
*/
end(callback?: CallbackHandler): this {
override end(callback?: CallbackHandler): this {
Promise.allSettled([this.#serverSetupPromise, this.#urlSetupPromise]).then(
() => {
const self = this;
Expand Down

0 comments on commit 7c94514

Please sign in to comment.