diff --git a/types/locks/index.d.ts b/types/locks/index.d.ts index 9ab113c5a9..8c112d65d1 100644 --- a/types/locks/index.d.ts +++ b/types/locks/index.d.ts @@ -8,7 +8,7 @@ export class Mutex { /** Construct a new mutex lock. */ constructor(); - /** Flag indicating whther the lock is currently taken. */ + /** Flag indicating whether the lock is currently taken. */ isLocked: boolean; /** Take the lock. */ lock(callback: () => void): void; diff --git a/types/locks/locks-tests.ts b/types/locks/locks-tests.ts index ecac6f59e1..1e7d768a0c 100644 --- a/types/locks/locks-tests.ts +++ b/types/locks/locks-tests.ts @@ -1,4 +1,4 @@ -import * as locks from "locks"; +import locks = require("locks"); // Mutex const mutex: locks.Mutex = new locks.Mutex();