# Install pipenv
pip install pipenv
# Create Venv
pipenv shell
import * as http from 'http'; | |
import * as url from 'url'; | |
import { Incoming } from './incoming.interface'; | |
import { QueuePersistence } from './persist-queues'; | |
let queues: QueuePersistence = new QueuePersistence(); | |
(async () => { | |
const server = await http.createServer(endpoint); | |
server.listen(3000); |
import * as React from 'react'; | |
export type AProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>; | |
export type APropsWithoutRef = React.AnchorHTMLAttributes<HTMLAnchorElement>; | |
export type AreaProps = React.DetailedHTMLProps<React.AreaHTMLAttributes<HTMLAreaElement>, HTMLAreaElement>; | |
export type AreaPropsWithoutRef = React.AreaHTMLAttributes<HTMLAreaElement>; | |
export type AudioProps = React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>; | |
export type AudioPropsWithoutRef = React.AudioHTMLAttributes<HTMLAudioElement>; | |
export type BaseProps = React.DetailedHTMLProps<React.BaseHTMLAttributes<HTMLBaseElement>, HTMLBaseElement>; | |
export type BasePropsWithoutRef = React.BaseHTMLAttributes<HTMLBaseElement>; |
import { AxiosError, AxiosResponse } from "axios"; | |
type BaseRequest<T, V> = (params?: T) => Promise<AxiosResponse<V>>; | |
type SuccessResponse<V> = { | |
code: "success"; | |
data: V; | |
}; | |
type ErrorResponse<E = AxiosError> = { |