Questions about difference between scriptType and script

So in the API documentation it states that the scriptType class is deprecated and created by the createScript function. It also states we should inherit from the script class instead. Should my codebases in the future inherit from the script class? And if so, what extra things do I have to do?

@Mark_Lundin