mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
fix: peripheral.find
This commit is contained in:
5
types/index.d.ts
vendored
5
types/index.d.ts
vendored
@@ -1102,7 +1102,10 @@ declare global {
|
||||
* @param peripheralType The type to search for
|
||||
* @returns The names of found peripherals and the wrapped peripherals
|
||||
*/
|
||||
function find(peripheralType: string): [string, any][];
|
||||
function find(
|
||||
peripheralType: string,
|
||||
filter?: (name: string, wrapped: any) => boolean,
|
||||
): [string, any][];
|
||||
|
||||
/**
|
||||
* Gets the names of all attached peripherals.
|
||||
|
||||
Reference in New Issue
Block a user