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 = {
|
export type HttpCode = {
|
||||||
code: number;
|
code: number;
|
||||||
@@ -11,8 +11,10 @@ type CodeDefinitions = {
|
|||||||
[K: string]: HttpCode;
|
[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: {
|
success: {
|
||||||
OK: { code: 200, name: "OK", "description": "" },
|
OK: { code: 200, name: "OK", "description": "" },
|
||||||
Created: { code: 201, name: "Created" },
|
Created: { code: 201, name: "Created" },
|
||||||
|
|||||||
Reference in New Issue
Block a user