Skip to content

Commit 0c86074

Browse files
committed
add missed export during porting
1 parent 6f44659 commit 0c86074

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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
/**

0 commit comments

Comments
 (0)