Typescript definition for nest abstract