UNPKG
@girin/framework
Version:
canary (0.5.2-alpha.1)
latest (0.5.2-alpha.0)
0.5.2-alpha.1
0.5.2-alpha.0
0.5.1-alpha.9
0.5.1-alpha.0
0.5.0-alpha.7
0.5.0-alpha.6
0.5.0-alpha.1
Core modules for Girin: GraphQL server framework
github.com/hanpama/girin
hanpama/girin
@girin/framework
/
src
/
global.ts
12 lines
(8 loc)
•
288 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
express
from
'express'
;
import
{
IncomingMessage
,
ServerResponse
}
from
'http'
;
export
const
app =
express
();
export
interface
ContextArguments
{
req
:
IncomingMessage
;
res
:
ServerResponse
; }
export
const
contextMap
:
Map
<
string
,
(
args
:
ContextArguments
) =>
any
> =
new
Map
();