Skip to content

Commit a825a87

Browse files
author
Nic Bradley
committed
ChatSetAttr v2
1 parent cbf4676 commit a825a87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+22228
-854
lines changed

.types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Prettify<T> = {
88
interface Roll20Object<T extends Record<string, any>> {
99
/** The unique ID of this object */
1010
id: string;
11-
properties: Prettify<T & { id: string }>;
11+
properties: Prettify<T & { _id: string }>;
1212

1313
/**
1414
* Get an attribute of the object
@@ -507,7 +507,7 @@ type FindObjsOptions = {
507507
* name: "target"
508508
* }, {caseInsensitive: true});
509509
*/
510-
declare function findObjs<T extends keyof Roll20ObjectTypeToInstance>(attrs: Partial<Roll20ObjectTypeToInstance[T]["properties"]> & { _type: T }, options?: FindObjsOptions): Roll20ObjectTypeToInstance[T][];
510+
declare function findObjs<T extends Roll20ObjectType>(attrs: Partial<Roll20ObjectTypeToInstance[T]["properties"]> & { _type: T }, options?: FindObjsOptions): Roll20ObjectTypeToInstance[T][];
511511

512512
/**
513513
* Filters Roll20 objects by executing the callback function on each object

ChatSetAttr/.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 22.12.0

0 commit comments

Comments
 (0)