ya-struct 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,7 +84,12 @@ declare const types: {
84
84
  };
85
85
  readonly ascii: ({ length }: {
86
86
  length: number;
87
- }) => TFieldType;
87
+ }) => {
88
+ readonly type: "string";
89
+ readonly charSizeInBits: 8;
90
+ readonly nullTerminatorMandatory: true;
91
+ readonly length: number;
92
+ };
88
93
  readonly pointer: {
89
94
  readonly type: "pointer";
90
95
  readonly fixedAbi: Partial<TAbi>;
@@ -85,7 +85,7 @@ const UInt64/*: TFieldType*/ = {
85
85
  fixedAbi: {}
86
86
  } /*as const*/;
87
87
 
88
- const ascii = ({ length }/*: { length: number }*/)/*: TFieldType*/ => {
88
+ const ascii = ({ length }/*: { length: number }*/) => {
89
89
  return {
90
90
  type: "string",
91
91
  charSizeInBits: 8,
@@ -85,7 +85,7 @@ const UInt64: TFieldType = {
85
85
  fixedAbi: {}
86
86
  } as const;
87
87
 
88
- const ascii = ({ length }: { length: number }): TFieldType => {
88
+ const ascii = ({ length }: { length: number }) => {
89
89
  return {
90
90
  type: "string",
91
91
  charSizeInBits: 8,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.7",
2
+ "version": "0.0.8",
3
3
  "name": "ya-struct",
4
4
  "type": "module",
5
5
  "description": "Yet Another Node.js Structure API",