Add optional typing for 'thread' objects and for 'custom' instance types * Restapi stdapi_lib = new Restapi();