Skip to content

Commit

Permalink
Merge pull request #2783 from uProxy/dborkan-uparams
Browse files Browse the repository at this point in the history
Change uparams to no longer use ES6 imports
  • Loading branch information
dborkan authored Oct 19, 2016
2 parents 9727f44 + 2d7b4e9 commit 13031a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/generic_ui/scripts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import * as network_options from '../../generic/network-options';
import * as model from './model';
import * as dialogs from './dialogs';
import * as jsurl from 'jsurl';
import uparams from 'uparams';
// TODO: remove uparams as it doesn't work with ES6 imports and TypeScript,
// see https://github.com/uProxy/uproxy/issues/2782
import uparams = require('uparams');
import * as crypto from 'crypto';
import * as jdenticon from 'jdenticon';

Expand Down
4 changes: 3 additions & 1 deletion third_party/generic/uparams.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Type definitions for the uparams module
// TODO: remove uparams as it doesn't work with ES6 imports and TypeScript,
// see https://github.com/uProxy/uproxy/issues/2782

declare module 'uparams' {
// The uparams module is itself a function, rather than an object with
// member functions.
function uparams(s:string) : any;
export default uparams;
export = uparams;
}

0 comments on commit 13031a7

Please sign in to comment.