Skip to content

Commit

Permalink
Remove unused rollup-plugin-typescript ambient module types (#4233)
Browse files Browse the repository at this point in the history
* chore: remove unused rollup-plugin-typescript ambient module types

* chore: fix return type of is_reference

* chore: remove type assertion
  • Loading branch information
dnalborczyk committed Oct 1, 2021
1 parent b67ef30 commit 61dd792
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ast/nodes/Identifier.ts
Expand Up @@ -45,7 +45,7 @@ export default class Identifier extends NodeBase implements PatternNode {
}

bind(): void {
if (this.variable === null && isReference(this, this.parent as any)) {
if (this.variable === null && isReference(this, this.parent)) {
this.variable = this.scope.findVariable(this.name);
this.variable.addReference(this);
}
Expand Down
7 changes: 1 addition & 6 deletions typings/declarations.d.ts
Expand Up @@ -9,11 +9,6 @@ declare module 'rollup-plugin-string' {
export const string: import('rollup').PluginImpl;
}

declare module 'rollup-plugin-typescript' {
const typescript: import('rollup').PluginImpl;
export default typescript;
}

declare module 'acorn-walk' {
type WalkerCallback<TState> = (node: acorn.Node, state: TState) => void;
type RecursiveWalkerFn<TState> = (
Expand All @@ -29,7 +24,7 @@ declare module 'is-reference' {
export default function is_reference(
node: NodeWithFieldDefinition,
parent: NodeWithFieldDefinition
): unknown;
): boolean;
export type Node =
| import('estree').Identifier
| import('estree').SimpleLiteral
Expand Down

0 comments on commit 61dd792

Please sign in to comment.