mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
fix(unstable): Missing PrivateIdentifier
type for PropertyDefinition
key (#28358)
The `PropertyDefinition` node also allows `PrivateIdentifier` as a type for the `key`. Example: ```ts class Foo { #foo = 2; } ``` Fixes one issue reported in https://github.com/denoland/deno/issues/28355
This commit is contained in:
parent
287bde1f72
commit
62bc07884b
1 changed files with 6 additions and 1 deletions
7
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
7
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -1946,7 +1946,12 @@ declare namespace Deno {
|
|||
static: boolean;
|
||||
accessibility: Accessibility | undefined;
|
||||
decorators: Decorator[];
|
||||
key: Expression | Identifier | NumberLiteral | StringLiteral;
|
||||
key:
|
||||
| Expression
|
||||
| Identifier
|
||||
| NumberLiteral
|
||||
| StringLiteral
|
||||
| PrivateIdentifier;
|
||||
value: Expression | null;
|
||||
typeAnnotation: TSTypeAnnotation | undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue