@rbxts/types 1.0.868 → 1.0.870

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.
@@ -1863,7 +1863,7 @@ interface FloatCurveKey {
1863
1863
  type FloatCurveKeyConstructor = new (
1864
1864
  time: number,
1865
1865
  value: number,
1866
- interpolation: CastsToEnum<Enum.KeyInterpolationMode>,
1866
+ interpolation?: CastsToEnum<Enum.KeyInterpolationMode>,
1867
1867
  ) => FloatCurveKey;
1868
1868
  declare const FloatCurveKey: FloatCurveKeyConstructor;
1869
1869
 
@@ -2297,7 +2297,7 @@ interface RotationCurveKey {
2297
2297
  type RotationCurveKeyConstructor = new (
2298
2298
  time: number,
2299
2299
  value: CFrame,
2300
- interpolation: CastsToEnum<Enum.KeyInterpolationMode>,
2300
+ interpolation?: CastsToEnum<Enum.KeyInterpolationMode>,
2301
2301
  ) => RotationCurveKey;
2302
2302
  declare const RotationCurveKey: RotationCurveKeyConstructor;
2303
2303
 
@@ -2888,6 +2888,9 @@ declare namespace buffer {
2888
2888
  /** Returns the size of the buffer in bytes. */
2889
2889
  function len(b: buffer): number;
2890
2890
 
2891
+ /** Reads a range of bits into an unsigned integer from the buffer based on a specific bitCount integer from 0 to 32, inclusive. */
2892
+ function readbits(b: buffer, bitOffset: number, bitCount: number): number;
2893
+
2891
2894
  /** Reads an 8-bit signed integer from the buffer. */
2892
2895
  function readi8(b: buffer, offset: number): number;
2893
2896
 
@@ -2915,6 +2918,9 @@ declare namespace buffer {
2915
2918
  /** Writes an 8-bit signed integer to the buffer. */
2916
2919
  function writei8(b: buffer, offset: number, value: number): void;
2917
2920
 
2921
+ /** Writes data to the buffer based on a specific bitCount integer from 0 to 32, inclusive. `value` is treated as an unsigned 32‑bit number and only bitCount least significant bits are written. */
2922
+ function writebits(b: buffer, bitOffset: number, bitCount: number, value: number): void;
2923
+
2918
2924
  /** Writes an 8-bit unsigned integer to the buffer. */
2919
2925
  function writeu8(b: buffer, offset: number, value: number): void;
2920
2926
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.868",
3
+ "version": "1.0.870",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },