Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Prettify<T> = {
interface Roll20Object<T extends Record<string, any>> {
/** The unique ID of this object */
id: string;
properties: Prettify<T & { id: string }>;
properties: Prettify<T & { _id: string }>;

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

/**
* Filters Roll20 objects by executing the callback function on each object
Expand Down
1 change: 1 addition & 0 deletions ChatSetAttr/.tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 22.12.0
Loading
Loading