Skip to content

DataChanged: Signal<( {[string]: any}, any, any, any )>? The second argument should be string not any. #26

@roommate6

Description

@roommate6

Why is the second argument "any "when is known to be the index of the changed value from data table which is defined like this: {[string]: any}? It should be string, right?

Also the documentation is wrong for the DataChanged property of the State machine. (the e.g is the problem):

    exampleStateMachine.StateChanged:Connect(function(newState: string, previousState: string)
        print("Our previous state was: " .. previousState .. " now our state is: " .. newState)
    end)

it should be:

    exampleStateMachine.DataChanged:Connect(function(data: {[string]: any}, index: string, newValue: any, oldValue: any)
        print("Changed the index " .. index .. " with: ", newValue)
    end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions