Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/botcahx/sosial-chating-gchat

Ini adalah projek Aplikasi chating berbasis web
https://github.com/botcahx/sosial-chating-gchat

anonymous-chat chat-application chatbots chating-application heroku-deployment indonesia-android-kejar javascript network nodejs python-script replit-hosting teknologi-multimedia tio tipescript

Last synced: about 1 month ago
JSON representation

Ini adalah projek Aplikasi chating berbasis web

Awesome Lists containing this project

README

        

# Sosial-Chating-GChat
Ini adalah projek Aplikasi chating berbasis web

# Installation
> `[![Run on Repl.it](https://repl.it/badge/github/quiec/whatsAlfa)](https://replit.com/~)

# Demo
Play Demo (https://adorable-hare-petticoat.cyclic.app/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors/index.d.ts)
````ts
// ini typescript 2.3
// bila gak support cari aja sendiri :v gua cuma nemu ini

import { IncomingHttpHeaders } from 'http';

type StaticOrigin = boolean | string | RegExp | (boolean | string | RegExp)[];

type CustomOrigin = (requestOrigin: string | undefined, callback: (err: Error | null, origin?: StaticOrigin) => void) => void;

declare namespace e {
interface CorsRequest {
method?: string | undefined;
headers: IncomingHttpHeaders;
}
interface CorsOptions {
/**
* @default '*''
*/
origin?: StaticOrigin | CustomOrigin | undefined;
/**
* @default 'GET,HEAD,PUT,PATCH,POST,DELETE'
*/
methods?: string | string[] | undefined;
allowedHeaders?: string | string[] | undefined;
exposedHeaders?: string | string[] | undefined;
credentials?: boolean | undefined;
maxAge?: number | undefined;
/**
* @default false
*/
preflightContinue?: boolean | undefined;
/**
* @default 204
*/
optionsSuccessStatus?: number | undefined;
}
type CorsOptionsDelegate = (
req: T,
callback: (err: Error | null, options?: CorsOptions) => void,
) => void;
}

declare function e(
options?: e.CorsOptions | e.CorsOptionsDelegate,
): (
req: T,
res: {
statusCode?: number | undefined;
setHeader(key: string, value: string): any;
end(): any;
},
next: (err?: any) => any,
) => void;
export = e;

````

### Additional Details
* Last updated: Fri, 09 Jul 2022 07:31:29 GMT
* Dependencies: none
* Global values: none

# Credits
These definitions were written by [Tio](https://github.com/BOTCAHX).