Update library to use declare class
#55611
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
declare class
#55611
Currently, declarations for classes consist of an interface for the instance and a
declare var
for the static side. This is a convoluted way of approaching classes. Instead, Typescript should usedeclare class
, which clarifies the type (since the class is known to be a class, rather than avar
object which has a new method and prototype property) and simplifies the definition (only one declaration).Sample Code
Documentation Link
No response
The text was updated successfully, but these errors were encountered: