Skip to content

Commit

Permalink
Merge pull request regl-project#502 from davschne/typescript-declarat…
Browse files Browse the repository at this point in the history
…ions

Fix type def TextureImage2D.subimage overload.
  • Loading branch information
mikolalysenko authored Aug 12, 2018
2 parents a1101bd + 8de6cd9 commit c17a3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ declare namespace REGL {
/* Replaces the area at offset `x` (default: 0), `y` (default: 0), with `data`. */
subimage(data: REGL.TextureImageData, x?: number, y?: number, level?: number): REGL.Texture2D;
/* Replaces a subset of the image using creation `options`. */
subimage(options: Texture2DOptions): REGL.Texture2D;
subimage(options: Texture2DOptions, x?: number, y?: number, level?: number): REGL.Texture2D;

/** Resizes the texture to `radius` x `radius`. */
resize(radius: number): REGL.Texture2D;
Expand Down

0 comments on commit c17a3e6

Please sign in to comment.