You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a library developer, I want to provide accurate typing definition files for my components.
The scenario that I cannot achieve this in is where I have a getter and setter on a class declared within an Ambient context.
**foo.d.ts**
// The following gives an error message: 'an accessor cannot be declared in an ambient context'
declare namespace Foo {
class Widget {
get name(): string; // gets the name
set name(name: string): void; // sets the name
}
}
The text was updated successfully, but these errors were encountered:
As a library developer, I want to provide accurate typing definition files for my components.
The scenario that I cannot achieve this in is where I have a getter and setter on a class declared within an Ambient context.
The text was updated successfully, but these errors were encountered: