Skip to content

Commit

Permalink
fix: use normal typescript syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 21, 2020
1 parent 7d2e5ed commit fe40ec2
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 33 deletions.
14 changes: 0 additions & 14 deletions index.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions src/busy-signal.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "atom-ide-base" {
// declare module "atom-ide-base" {
export interface BusySignalOptions {
// Can say that a busy signal will only appear when a given file is open.
// Default = `null`, meaning the busy signal applies to all files.
Expand Down Expand Up @@ -42,4 +42,4 @@ declare module "atom-ide-base" {
// Dispose of the signal when done to make it go away.
dispose(): void;
}
}
// }
4 changes: 1 addition & 3 deletions src/code-actions.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as Atom from "atom";
import { Message } from "../linter";
import { Message } from "atom/linter";

declare module "atom-ide-base" {
export interface CodeAction {
apply(): Promise<void>;
getTitle(): Promise<string>;
Expand Down Expand Up @@ -30,4 +29,3 @@ declare module "atom-ide-base" {
editor: Atom.TextEditor
) => Promise<CodeAction[]>;
}
}
2 changes: 0 additions & 2 deletions src/code-highlight.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface CodeHighlightProvider {
priority: number;
grammarScopes: ReadonlyArray<string>;
Expand All @@ -9,4 +8,3 @@ declare module "atom-ide-base" {
bufferPosition: Atom.Point
): Promise<Atom.Range[] | undefined | null>;
}
}
2 changes: 0 additions & 2 deletions src/datatip.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface DatatipService {
addProvider(provider: DatatipProvider): Atom.DisposableLike;
addModifierProvider(provider: ModifierDatatipProvider): Atom.DisposableLike;
Expand Down Expand Up @@ -70,4 +69,3 @@ declare module "atom-ide-base" {
};

export type ModifierKey = "metaKey" | "shiftKey" | "altKey" | "ctrlKey";
}
2 changes: 0 additions & 2 deletions src/definitions.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface Definition {
// Path of the file in which the definition is located.
path: string;
Expand Down Expand Up @@ -56,4 +55,3 @@ declare module "atom-ide-base" {
| undefined
>;
}
}
2 changes: 0 additions & 2 deletions src/find-references.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface FindReferencesProvider {
// Return true if your provider supports finding references for the provided Atom.TextEditor.
isEditorSupported(editor: Atom.TextEditor): Promise<boolean>;
Expand Down Expand Up @@ -33,4 +32,3 @@ declare module "atom-ide-base" {
}

export type FindReferencesReturn = FindReferencesData | FindReferencesError;
}
2 changes: 0 additions & 2 deletions src/hyperclick.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface HyperclickProvider {
// Use this to provide a suggestion for single-word matches.
// Optionally set `wordRegExp` to adjust word-matching.
Expand Down Expand Up @@ -38,4 +37,3 @@ declare module "atom-ide-base" {
| (() => void)
| Array<{ rightLabel?: string; title: string; callback: () => void }>;
}
}
12 changes: 12 additions & 0 deletions src/main.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// atom-ide
// https://github.com/atom-ide-community/atom-ide-base

export * from "./busy-signal"
export * from "./code-actions"
export * from "./code-highlight"
export * from "./datatip"
export * from "./definitions"
export * from "./find-references"
export * from "./hyperclick"
export * from "./outline"
export * from "./sig-help"
2 changes: 0 additions & 2 deletions src/outline.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Atom from "atom";

declare module "atom-ide-base" {
export interface OutlineProvider {
name: string;
// If there are multiple providers for a given grammar, the one with the highest priority will be
Expand Down Expand Up @@ -70,4 +69,3 @@ declare module "atom-ide-base" {
}

export type TokenizedText = TextToken[];
}
2 changes: 0 additions & 2 deletions src/sig-help.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { DisposableLike, Point, TextEditor } from "atom";

declare module "atom-ide-base" {
export type SignatureHelpRegistry = (
provider: SignatureHelpProvider
) => DisposableLike;
Expand Down Expand Up @@ -33,4 +32,3 @@ declare module "atom-ide-base" {
label: string;
documentation?: string;
}
}
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"experimentalDecorators": true,
"incremental": true,
// "preserveConstEnums": true,
"sourceMap": true,
"inlineSourceMap": false,
"inlineSources": true,
"preserveSymlinks": true,
Expand Down

0 comments on commit fe40ec2

Please sign in to comment.