UNPKG

sv443-joke-api

Version:
31 lines (30 loc) 950 B
export declare type Category = "Programming" | "Misc" | "Dark" | "Pun" | "Spooky" | "Christmas" | "Miscellaneous" | "Coding" | "Development" | "Halloween"; export declare type Flag = "nsfw" | "religious" | "political" | "racist" | "sexist" | "explicit"; export declare type ResponseFormat = "json" | "xml" | "yaml" | "plain"; export declare type LanguageCode = "cs" | "de" | "en" | "es"; export declare type JokeType = "single" | "twopart"; export declare type IdRangeObject = { from: number; to: number; }; /** * Type of Error object */ export declare type Error = { /** Error code */ code: any; /** Description of the error */ description: string; }; /** * A wrapper for "Object with string keys" type */ export declare type StrObject<ValueType> = { [key: string]: ValueType; }; /** * A wrapper for "Object with number keys" type */ export declare type NumberObject<ValueType> = { [key: number]: ValueType; };