Sfoglia il codice sorgente

Merge pull request #9712 from jasonsturges/doc/libdeclarations

Lib Declarations documentation
sebavan 4 anni fa
parent
commit
2f3ea98c40
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/LibDeclarations/browser.d.ts
  2. 1 1
      src/LibDeclarations/webvr.d.ts

+ 1 - 1
src/LibDeclarations/browser.d.ts

@@ -28,7 +28,7 @@ interface HTMLCanvasElement {
     mozRequestPointerLock?(): void;
     webkitRequestPointerLock?(): void;
 
-    /** Track wether a record is in progress */
+    /** Track whether a record is in progress */
     isRecording: boolean;
     /** Capture Stream method defined by some browsers */
     captureStream(fps?: number): MediaStream;

+ 1 - 1
src/LibDeclarations/webvr.d.ts

@@ -102,7 +102,7 @@ interface VRDisplay extends EventTarget {
      * identically to how window.requestAnimationFrame acts. Content should
      * make no assumptions of frame rate or vsync behavior as the HMD runs
      * asynchronously from other displays and at differing refresh rates.
-     * @param callback Define the eaction to run next frame
+     * @param callback Define the action to run next frame
      * @returns the request handle it
      */
     requestAnimationFrame(callback: FrameRequestCallback): number;