Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
reececomo committed Sep 20, 2024
1 parent 702c297 commit afe1699
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export declare const Type: {
* - 16,385 → 536,870,911 = 4 bytes
* - 536,870,912 → `Number.MAX_SAFE_INTEGER` = 8 bytes
*/
readonly UInt: "u";
readonly UInt: "uint";
/** Unsigned 8-bit integer (between 0 and 255, 1 byte). */
readonly UInt8: "u8";
/** Unsigned 16-bit integer (between 0 and 65,535, 2 bytes). */
Expand All @@ -37,7 +37,7 @@ export declare const Type: {
* - ±8,193 → ±268,435,456 = 4 bytes
* - ±268,435,457 → ±`Number.MAX_SAFE_INTEGER` = 8 bytes
*/
readonly Int: "i";
readonly Int: "int";
/** Signed 1 byte integer (between -127 and 127). */
readonly Int8: "i8";
/** Signed 2 byte integer (between -32,767 and 32,767). */
Expand All @@ -60,9 +60,9 @@ export declare const Type: {
* **Warning:** Low precision.
*/
readonly BFloat16: "b16";
/** A cheap, low-resolution signed scalar between -1.00 and 1.00 (1 byte). */
/** A signed 2-decimal scalar between -1.00 and 1.00 (1 byte). */
readonly Scalar8: "sc";
/** A cheap, low-resolution unsigned scalar between 0.00 and 1.00 (1 byte). */
/** An unsigned 2-decimal scalar between 0.00 and 1.00 (1 byte). */
readonly UScalar8: "usc";
/**
* Boolean value (1 byte).
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/core/Type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Type = {
* - 16,385 → 536,870,911 = 4 bytes
* - 536,870,912 → `Number.MAX_SAFE_INTEGER` = 8 bytes
*/
UInt: "u",
UInt: "uint",

/** Unsigned 8-bit integer (between 0 and 255, 1 byte). */
UInt8: "u8",
Expand All @@ -29,7 +29,7 @@ export const Type = {
* - ±8,193 → ±268,435,456 = 4 bytes
* - ±268,435,457 → ±`Number.MAX_SAFE_INTEGER` = 8 bytes
*/
Int: "i",
Int: "int",

/** Signed 1 byte integer (between -127 and 127). */
Int8: "i8",
Expand Down Expand Up @@ -60,10 +60,10 @@ export const Type = {
*/
BFloat16: "b16",

/** A cheap, low-resolution signed scalar between -1.00 and 1.00 (1 byte). */
/** A signed 2-decimal scalar between -1.00 and 1.00 (1 byte). */
Scalar8: "sc",

/** A cheap, low-resolution unsigned scalar between 0.00 and 1.00 (1 byte). */
/** An unsigned 2-decimal scalar between 0.00 and 1.00 (1 byte). */
UScalar8: "usc",

/**
Expand Down

0 comments on commit afe1699

Please sign in to comment.