mirror of
https://github.com/swc-project/swc.git
synced 2024-11-22 06:46:41 +03:00
fix(bindings/node): Add VisitTsPropertySignature
(#9670)
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
Some checks are pending
CI / Cargo fmt (push) Waiting to run
CI / Cargo clippy (push) Waiting to run
CI / Check license of dependencies (push) Waiting to run
CI / Check (macos-latest) (push) Waiting to run
CI / Check (ubuntu-latest) (push) Waiting to run
CI / Check (windows-latest) (push) Waiting to run
CI / Test wasm (binding_core_wasm) (push) Waiting to run
CI / Test wasm (binding_minifier_wasm) (push) Waiting to run
CI / Test wasm (binding_typescript_wasm) (push) Waiting to run
CI / List crates (push) Waiting to run
CI / Test - ${{ matrix.settings.crate }} - ${{ matrix.settings.os }} (push) Blocked by required conditions
CI / Test node bindings - ${{ matrix.os }} (macos-latest) (push) Waiting to run
CI / Test node bindings - ${{ matrix.os }} (windows-latest) (push) Waiting to run
CI / Test with @swc/cli (push) Waiting to run
CI / Miri (better_scoped_tls) (push) Waiting to run
CI / Miri (string_enum) (push) Waiting to run
CI / Miri (swc) (push) Waiting to run
CI / Miri (swc_bundler) (push) Waiting to run
CI / Done (push) Blocked by required conditions
Benchmark / Bench everything (push) Waiting to run
Publish crates (auto) / Publish cargo crates (push) Waiting to run
**Description:** As per PR #8955 > TsPropertySignature can not have params, type params, or an initializer. This PR cleans up these fields from ts definition and visitor
This commit is contained in:
parent
ba2a942f56
commit
715c42c0bf
@ -797,7 +797,6 @@ export class Visitor {
|
||||
return n;
|
||||
}
|
||||
visitTsPropertySignature(n: TsPropertySignature): TsPropertySignature {
|
||||
n.params = this.visitTsFnParameters(n.params);
|
||||
n.typeAnnotation = this.visitTsTypeAnnotation(n.typeAnnotation);
|
||||
return n;
|
||||
}
|
||||
|
@ -2426,11 +2426,7 @@ export interface TsPropertySignature extends Node, HasSpan {
|
||||
computed: boolean;
|
||||
optional: boolean;
|
||||
|
||||
init?: Expression;
|
||||
params: TsFnParameter[];
|
||||
|
||||
typeAnnotation?: TsTypeAnnotation;
|
||||
typeParams?: TsTypeParameterDeclaration;
|
||||
}
|
||||
|
||||
export interface TsGetterSignature extends Node, HasSpan {
|
||||
|
Loading…
Reference in New Issue
Block a user