Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed May 3, 2024
1 parent 09e85f8 commit 14b88d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function _member<T extends ValidPrimitiveType>(type: T) {

/**
* Shortcut types
*
*
* Instead of writing `@member(type)` you can write `@types.type`, or `@types.type(length)` for arrays
*/
export const types = Object.fromEntries(validPrimitiveTypes.map(t => [t, _member(t)])) as { [K in ValidPrimitiveType]: ReturnType<typeof _member<K>> };

0 comments on commit 14b88d8

Please sign in to comment.