Fix import and avoid type defn nonsense
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Extensible } from "./interfaces";
|
||||
import { Extensible } from "./interfaces.ts";
|
||||
|
||||
export type HttpCode = {
|
||||
code: number;
|
||||
@@ -11,8 +11,10 @@ type CodeDefinitions = {
|
||||
[K: string]: HttpCode;
|
||||
};
|
||||
};
|
||||
// FIXME: Figure out how to brand CodeDefinitions in a way that isn't
|
||||
// tedious.
|
||||
|
||||
const httpCodes: CodeDefinitions & Extensible = {
|
||||
const httpCodes: CodeDefinitions = {
|
||||
success: {
|
||||
OK: { code: 200, name: "OK", "description": "" },
|
||||
Created: { code: 201, name: "Created" },
|
||||
|
||||
Reference in New Issue
Block a user