Skip to content

Commit

Permalink
fix: unneeded type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Feb 5, 2018
1 parent c48173f commit 6656c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import options, { Options } from './options'
import { extend, genId } from './utils'
import * as WebSocket from '../types/ws'
import middleware from './middleware'
import { ServerRequest, ServerResponse } from 'http'

export { Sandbox, ServerRequest, ServerResponse }
export { Sandbox }

export default function (opts: Options) {
opts = options(opts)
Expand Down
3 changes: 1 addition & 2 deletions lib/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import Nisp from 'nisp'
import Promise from 'yaku'
import { ServerRequest, ServerResponse } from 'http'
import { Options } from './options'

export default (opts: Options) => {
var Buffer = global['Buffer']

return (req: ServerRequest, res: ServerResponse) => {
return (req, res) => {
return Promise.all([
opts.onRequest(req, res),
new Promise((resolve, reject) => {
Expand Down

0 comments on commit 6656c61

Please sign in to comment.