Skip to content

Commit

Permalink
Fix error "Top-level declarations in .d.ts files must start with eith…
Browse files Browse the repository at this point in the history
…er a 'declare' or 'export' modifier."

I running it in ts file.
After install this package, it raises error "Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."
So I add export at the beginning of class GRPCError.
  • Loading branch information
spacime authored and jamessharp committed Oct 29, 2019
1 parent 767fc40 commit 3b90a12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {VError} from 'verror';

class GRPCError extends VError {
export class GRPCError extends VError {
code: number;
name: string;
}
Expand All @@ -21,4 +21,4 @@ export class UnimplementedError extends GRPCError {}
export class InternalError extends GRPCError {}
export class UnavailableError extends GRPCError {}
export class DataLossError extends GRPCError {}
export class UnauthenticatedError extends GRPCError {}
export class UnauthenticatedError extends GRPCError {}

0 comments on commit 3b90a12

Please sign in to comment.