@siredvin/typed-peripheral-pneumaticcraft 0.1.0 → 0.2.0

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.
@@ -1,12 +1,9 @@
1
1
  /** @noSelf **/
2
2
  export declare interface CommonPneumaticCraftPeripheral extends IPeripheral {
3
- /* direction only make sense for vacuum pump */
4
3
  getPressure(direction?: string): number;
5
4
  getDangerPressure(): number;
6
5
  getCriticalPressure(): number;
7
6
  }
8
-
9
7
  export declare interface HeatPneumaticCraftPeripheral extends IPeripheral {
10
- /* direction only make sense for vortex tube */
11
8
  getTemperature(direction?: string): number;
12
9
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@siredvin/typed-peripheral-pneumaticcraft",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Typed peripheral library for Pneumaticcraft peripherals",
5
5
  "files": [
6
- "./*.ts",
6
+ "./*.d.ts",
7
7
  "./*.lua"
8
8
  ],
9
9
  "publishConfig": {
@@ -19,9 +19,9 @@
19
19
  "depcheck": "depcheck"
20
20
  },
21
21
  "dependencies": {
22
- "@siredvin/cc-types": "1.1.0",
23
- "@siredvin/craftos-types": "1.2.0",
24
- "@siredvin/api-types": "1.1.0",
22
+ "@siredvin/cc-types": "1.2.0",
23
+ "@siredvin/craftos-types": "1.3.0",
24
+ "@siredvin/api-types": "1.2.0",
25
25
  "@jackmacwindows/lua-types": "^2.13.1",
26
26
  "@siredvin/typed-peripheral-base": "0.4.0"
27
27
  },
@@ -1,20 +1,15 @@
1
1
  import { IPeripheralProvider } from "@siredvin/typed-peripheral-base";
2
2
  import { CommonPneumaticCraftPeripheral } from "./base";
3
-
4
3
  /** @noSelf **/
5
4
  export interface UniversalSensor extends CommonPneumaticCraftPeripheral {
6
5
  getSensorNames(): LuaTable<string>;
7
6
  getSensor(): string;
8
- setSensor(sensor?: string | number);
9
- setTextField(text: string);
7
+ setSensor(sensor?: string | number): any;
8
+ setTextField(text: string): any;
10
9
  getTextField(): string;
11
10
  isSensorEventBased(): boolean;
12
11
  getSensorValue(): number;
13
12
  getMinWorkingPressure(): number;
14
- setGPSToolCoordinate(slot: number, x: number, y: number, z: number);
13
+ setGPSToolCoordinate(slot: number, x: number, y: number, z: number): any;
15
14
  }
16
-
17
- export const universalSensorProvider = new IPeripheralProvider<UniversalSensor>(
18
- "pneumaticcraft:universal_sensor",
19
- () => null
20
- );
15
+ export declare const universalSensorProvider: IPeripheralProvider<UniversalSensor>;