Skip to content

Conversation

@Promises
Copy link
Collaborator

@Promises Promises commented Mar 1, 2020

needs checking by the almighty @TheBlackParade


export const action: objectAction = (details) => {
const {player, option, objectDefinition, object} = details;
export const action: objectAction | itemOnObjectAction = (details) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to just : itemOnObjectAction or : objectAction. A single action can not have two types, you need to define two actions if they're of a different type.



export const action: objectAction = (details) => {
export const action: objectAction | itemOnObjectAction = (details) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to just : itemOnObjectAction or : objectAction. A single action can not have two types, you need to define two actions if they're of a different type.

@TheBlackParade TheBlackParade merged commit 7538e62 into runejs:master Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants