UNPKG
lux-framework
Version:
latest (1.2.3)
1.2.3
1.2.2
1.2.1
1.2.0
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
1.0.0-rc
0.0.1-beta.13
0.0.1-beta.12
0.0.1-beta.11
0.0.1-beta.10
0.0.1-beta.9
0.0.1-beta.8
0.0.1-beta.7
0.0.1-beta.6
0.0.1-beta.5
0.0.1-beta.4
0.0.1-beta.3
0.0.1-beta.2
0.0.1-beta.1
0.0.1-beta
Build scalable, Node.js-powered REST APIs with almost no code.
lux.postlight.com
postlight/lux
lux-framework
/
src
/
packages
/
router
/
definitions
/
interfaces.js
10 lines
(7 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
// @flow
import
type
{
Router
$Namespace,
Resource
$opts }
from
'../index'
;
export
type
Router
$DefinitionBuilder<
T
:
Router
$Namespace> =
(
builder
?: () =>
void
,
namespace
: T
) =>
T;
export
type
Router
$resourceArgs = [
string
, ?
Resource
$opts, ?
() =>
void
];