Skip to content

Commit

Permalink
feat(types): remove object method types
Browse files Browse the repository at this point in the history
  • Loading branch information
TomokiMiyauci committed Mar 24, 2023
1 parent aa110c6 commit 2409a96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export {
BytesRange,
type ComputeBoundary,
} from "./ranges/bytes.ts";
export type { Range, RangeContext, RangeRespond } from "./types.ts";
export type { Range, RangeContext } from "./types.ts";
7 changes: 1 addition & 6 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ export interface Range {
readonly rangeUnit: string;

/** Takes the context of a range request and handler response and return a partial response. */
readonly respond: RangeRespond;
}

/** Range responding API. */
export interface RangeRespond {
(context: RangeContext): Response | Promise<Response>;
respond(context: RangeContext): Response | Promise<Response>;
}

/** Context of range request and response. */
Expand Down

0 comments on commit 2409a96

Please sign in to comment.