Skip to content

Commit 61d24d3

Browse files
authored
add missed exports during porting (#737)
2 parents 89f78eb + 38b96e3 commit 61d24d3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

exports/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ export {
4848
CoreTextureManager,
4949
type TextureMap,
5050
} from '../src/core/CoreTextureManager.js';
51+
export {
52+
TextureError,
53+
TextureErrorCode,
54+
isTextureError,
55+
} from '../src/core/TextureError.js';
5156
export type { MemoryInfo } from '../src/core/TextureMemoryManager.js';
5257
export type { AnimationSettings } from '../src/core/animations/CoreAnimation.js';
5358
export type { TimingFunction } from '../src/core/utils.js';

src/common/CommonTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
*/
1919

2020
import type { CoreNodeRenderState } from '../core/CoreNode.js';
21+
import type { TextureError } from '../core/TextureError.js';
2122

2223
/**
2324
* Types shared between Main Space and Core Space
@@ -71,7 +72,7 @@ export type NodeTextFailedPayload = {
7172
*/
7273
export type NodeTextureFailedPayload = {
7374
type: 'texture';
74-
error: Error;
75+
error: TextureError;
7576
};
7677

7778
/**

src/core/textures/Texture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export abstract class Texture extends EventEmitter {
155155
* `null`.
156156
*/
157157
private _dimensions: Dimensions | null = null;
158-
private _error: Error | null = null;
158+
private _error: TextureError | null = null;
159159

160160
// aggregate state
161161
public state: TextureState = 'initial';

0 commit comments

Comments
 (0)