Skip to content

Commit

Permalink
Improve ts types and enable esModuleInterop
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <[email protected]>
  • Loading branch information
t3chguy committed Apr 21, 2020
1 parent 77a1fc9 commit 7082516
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 262 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"@babel/preset-typescript": "^7.7.4",
"@babel/register": "^7.7.4",
"@types/node": "12",
"@types/request": "^2.48.4",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babelify": "^10.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import type Request from "request";

import {MemoryCryptoStore} from "./crypto/store/memory-crypto-store";
import {LocalStorageCryptoStore} from "./crypto/store/localStorage-crypto-store";
import {IndexedDBCryptoStore} from "./crypto/store/indexeddb-crypto-store";
Expand Down Expand Up @@ -117,7 +119,7 @@ interface ICreateClientOpts {
store?: Store;
cryptoStore?: CryptoStore;
scheduler?: MatrixScheduler;
request?: any; // TODO
request?: Request;
}

/**
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "es2016",
Expand Down
Loading

0 comments on commit 7082516

Please sign in to comment.