Enable Dynamic Function Typescript