Skip to content

Commit

Permalink
adding TypeScript convinience.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Jul 15, 2017
1 parent 1054f99 commit 69b5e79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "connection-string",
"version": "0.3.0",
"version": "0.3.1",
"description": "URL Connection String Parser.",
"main": "src/index.js",
"typings": "src/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface IConnectionString {
port?: number
segments?: string[]
params?: { [name: string]: string }
};
}

export class ConnectionString implements IConnectionString {
constructor(cd: string)
Expand Down
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@

Object.defineProperty(ConnectionString.prototype, 'build', {value: build});

ConnectionString.ConnectionString = ConnectionString;

/* istanbul ignore else */
if (typeof module === 'object' && module && typeof module.exports === 'object') {
module.exports = ConnectionString;
Expand All @@ -152,4 +154,3 @@
window.ConnectionString = ConnectionString;
}
})(this);

0 comments on commit 69b5e79

Please sign in to comment.