Skip to content

Commit fbd420f

Browse files
authored
fix: Apply missing Prettify calls (#1105)
1 parent c82dc93 commit fbd420f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/typegpu/src/data/unstruct.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { $repr, InferPartialRecord, InferRecord } from '../shared/repr.js';
2+
import type { Prettify } from '../shared/utilityTypes.js';
23
import type { Unstruct } from './dataTypes.js';
34
import type { BaseData } from './wgslTypes.js';
45

@@ -41,7 +42,7 @@ class UnstructImpl<TProps extends Record<string, BaseData>>
4142

4243
public readonly type = 'unstruct';
4344
/** Type-token, not available at runtime */
44-
public declare readonly [$repr]: InferRecord<TProps>;
45+
public declare readonly [$repr]: Prettify<InferRecord<TProps>>;
4546
/** Type-token, not available at runtime */
4647
public readonly '~reprPartial'!: Partial<InferPartialRecord<TProps>>;
4748

packages/typegpu/src/data/wgslTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ export const $structTag = Symbol('Tag for struct schemas');
917917
export interface WgslStruct<
918918
TProps extends Record<string, BaseData> = Record<string, BaseData>,
919919
> extends TgpuNamable {
920-
(props: InferRecord<TProps>): InferRecord<TProps>;
920+
(props: Prettify<InferRecord<TProps>>): Prettify<InferRecord<TProps>>;
921921
/** @deprecated */
922922
readonly type: 'struct';
923923
readonly label?: string | undefined;

0 commit comments

Comments
 (0)