Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinktofit committed Aug 1, 2023
1 parent 13ea8d7 commit c2513e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/asset/assets/buffer-asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class BufferAsset extends Asset {
* @en Since 3.9.0, this method is deprecated.
* Invocation on this method leads to significate cost. Use `this.view` instead.
*/
public buffer () {
public buffer (): ArrayBufferLike {
if (!this._bufferLegacy) {
this._bufferLegacy = new Uint8Array(this.view);
}
Expand Down

0 comments on commit c2513e8

Please sign in to comment.