Function with enum - TYPESCRIPT

1

I need to put a function into an enum in typescript as in the example below:

export enum dataTableFunc{
    'edit'= teste()
}


function teste(event.button){
//
}

In this function that I am trying to pass to the enum still must receive one or more parameters, this will be defined at the moment of the implementation of the function. And my doubt is this, is it possible? If so, how can I do this? I did some research on the documentation but I did not have much success ....

    
asked by anonymous 22.03.2018 / 22:30

0 answers