mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[express-cluster]: Fixes
This commit is contained in:
parent
f8d259f70b
commit
6d8509d114
@ -1,4 +1,4 @@
|
||||
import * as cluster from 'express-cluster';
|
||||
import cluster = require('express-cluster');
|
||||
|
||||
() => {
|
||||
cluster(worker => {}, {count: 5});
|
||||
|
||||
2
types/express-cluster/index.d.ts
vendored
2
types/express-cluster/index.d.ts
vendored
@ -5,7 +5,7 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as cluster from 'cluster';
|
||||
import cluster = require('cluster');
|
||||
|
||||
interface Config {
|
||||
count?: number;
|
||||
|
||||
@ -7,6 +7,7 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@ -19,4 +20,4 @@
|
||||
"index.d.ts",
|
||||
"express-cluster-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user