mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Typo fix.
Changed import style.
This commit is contained in:
parent
a7c782972c
commit
4bb0741b07
2
types/locks/index.d.ts
vendored
2
types/locks/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as locks from "locks";
|
||||
import locks = require("locks");
|
||||
|
||||
// Mutex
|
||||
const mutex: locks.Mutex = new locks.Mutex();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user